mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
8a4b936dcb
commit
33cdddb83d
@ -185,20 +185,24 @@ protected function listen() {
|
|||||||
unset($this->Identified[$Nick[1]]);
|
unset($this->Identified[$Nick[1]]);
|
||||||
}
|
}
|
||||||
if (isset($this->DisabledUsers[$Nick[1]])) {
|
if (isset($this->DisabledUsers[$Nick[1]])) {
|
||||||
|
if ($this->DisabledUsers[$Nick[1]]['UserID'] != 0) {
|
||||||
G::$DB->query("
|
G::$DB->query("
|
||||||
DELETE FROM disable_list
|
DELETE FROM disable_list
|
||||||
WHERE Nick = '$Nick[1]'");
|
WHERE Nick = '$Nick[1]'");
|
||||||
G::$Cache->increment_value('num_disablees', -1);
|
G::$Cache->decrement_value('num_disablees');
|
||||||
|
}
|
||||||
unset($this->DisabledUsers[$Nick[1]]);
|
unset($this->DisabledUsers[$Nick[1]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match("/:([^!]+)![^\s]* PART ".BOT_DISABLED_CHAN.'/', $this->Data, $Nick)) {
|
if (preg_match("/:([^!]+)![^\s]* PART ".BOT_DISABLED_CHAN.'/', $this->Data, $Nick)) {
|
||||||
if (isset($this->DisabledUsers[$Nick[1]])) {
|
if (isset($this->DisabledUsers[$Nick[1]])) {
|
||||||
|
if ($this->DisabledUsers[$Nick[1]]['UserID'] != 0) {
|
||||||
G::$DB->query("
|
G::$DB->query("
|
||||||
DELETE FROM disable_list
|
DELETE FROM disable_list
|
||||||
WHERE Nick = '$Nick[1]'");
|
WHERE Nick = '$Nick[1]'");
|
||||||
G::$Cache->increment_value('num_disablees', -1);
|
G::$Cache->decrement_value('num_disablees');
|
||||||
|
}
|
||||||
unset($this->DisabledUsers[$Nick[1]]);
|
unset($this->DisabledUsers[$Nick[1]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -206,10 +210,12 @@ protected function listen() {
|
|||||||
if (preg_match("/:([^!]+)![^\s]* KICK ".BOT_DISABLED_CHAN.'.* /', $this->Data, $Nick)) {
|
if (preg_match("/:([^!]+)![^\s]* KICK ".BOT_DISABLED_CHAN.'.* /', $this->Data, $Nick)) {
|
||||||
$Nick = explode(' ', $Nick[0]);
|
$Nick = explode(' ', $Nick[0]);
|
||||||
if (isset($this->DisabledUsers[$Nick[3]])) {
|
if (isset($this->DisabledUsers[$Nick[3]])) {
|
||||||
|
if ($this->DisabledUsers[$Nick[3]]['UserID'] != 0) {
|
||||||
G::$DB->query("
|
G::$DB->query("
|
||||||
DELETE FROM disable_list
|
DELETE FROM disable_list
|
||||||
WHERE Nick = '$Nick[3]'");
|
WHERE Nick = '$Nick[3]'");
|
||||||
G::$Cache->increment_value('num_disablees', -1);
|
G::$Cache->decrement_value('num_disablees');
|
||||||
|
}
|
||||||
unset($this->DisabledUsers[$Nick[3]]);
|
unset($this->DisabledUsers[$Nick[3]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user