Call this v1.5.1
This commit is contained in:
parent
8f8f09e7fe
commit
6b3032fec0
@ -60,6 +60,10 @@ Read-Write access for working directory
|
||||
|
||||
|
||||
#### Changelog
|
||||
* v1.5.1:
|
||||
* Add /archive, allows to keep IRC logs while clearing chat history.
|
||||
* Minor fixes / tweaks
|
||||
|
||||
* v1.5.0:
|
||||
* Polishing up, adding some last minute fixes.
|
||||
* Tweaks on irc.php
|
||||
|
13
server.php
13
server.php
@ -213,7 +213,18 @@ if (isset($_GET['msg']) && $_GET['msg']!="" && isset($_GET['nick']) && $_GET['ni
|
||||
include("users/" . $nick . ".php");
|
||||
if ($_GET['do']=="clearlog") {
|
||||
if(file_exists("users/" . $nick . ".log") && ($acctpass == $userpass)) {
|
||||
unlink("users/" . $nick . ".log");
|
||||
unlink("users/$nick.log");
|
||||
}
|
||||
|
||||
if(file_exists("users/" . $nick . ".logcount") && ($acctpass == $userpass)) {
|
||||
$archived = file_get_contents("users/$nick.logcount");
|
||||
for($x = 1; $x <= $archived; $x++) {
|
||||
if(file_exists("users/$nick.$x.log")) {
|
||||
unlink("users/$nick.$x.log");
|
||||
}
|
||||
}
|
||||
|
||||
unlink("users/$nick.logcount");
|
||||
}
|
||||
} else if($_GET['do']=="login" && !file_exists("users/.$username.pingfile") && ($acctpass == $userpass)) { // Is user asking for login?
|
||||
// Join channel
|
||||
|
@ -5,6 +5,6 @@
|
||||
// https://github.com/Pentium44/idleirc
|
||||
///////
|
||||
|
||||
$version = "1.5.0"; // IdleIRC version
|
||||
$version = "1.5.1"; // IdleIRC version
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user