From d49cbc4c36306e9a3e5358ba80883ff9d6163f0e Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 4 May 2008 09:44:04 +0000 Subject: [PATCH] troll defence --- web/Obj/brisk.phh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index f29b9a7..412542a 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -734,13 +734,12 @@ class User { $this->name = ""; while (array_pop($this->comm) != NULL); $this->step = 0; - $this->the_end = FALSE; - $this->chattime = array_fill(0, CHAT_N, 0); $this->chat_cur = 0; $this->chat_lst = ""; $this->chat_ban = 0; $this->chat_dlt = 0; + $this->the_end = FALSE; } } // end class User @@ -1398,7 +1397,9 @@ class Room { } else { $to_user = sprintf('chatt_sub("%s","%s");', $dt.xcape($user->name), xcape($msg)); - $to_room = $to_user; + // temporary silentiation for troll (will became array check) + if (strcasecmp($user->name,'JackRokka') != 0 && $user->sess != '47ea653f602e8') + $to_room = $to_user; } log_legal($timecur, $user->sess, $user->name, -- 2.17.1