From: pk910 Date: Wed, 10 Aug 2011 04:09:06 +0000 (+0200) Subject: fixed small cache bug within PulseBot.class.php X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=3559caa8aeef9f19c419978e4eb0cfe7a70d5bbb fixed small cache bug within PulseBot.class.php --- diff --git a/Bots/PulseBot.class.php b/Bots/PulseBot.class.php index 22a5c93..c7e47da 100644 --- a/Bots/PulseBot.class.php +++ b/Bots/PulseBot.class.php @@ -48,7 +48,7 @@ class {$_NAME} extends Bot { } else { $this->pulsebot = $old; } - BotLoader::registerDB($this, "PulseBot"); + BotLoader::registerDB($this, "pulsebot"); ModCMD::bind($this, BIND_CHANMSG, "recive_privmsg"); ModCMD::bind($this, BIND_JOIN, "recive_join"); ModCMD::bind($this, BIND_QUIT, "recive_quit"); @@ -95,7 +95,7 @@ class {$_NAME} extends Bot { if(strtolower($user->MemberName) == strtolower($name)) { $xmlstr = file_get_contents("http://whatpulse.org/api/user.php?UserID=".$user->MemberUserID); $ustats = new SimpleXMLElement($xmlstr); - $this->cache["ustats_".strtolower($name)] = $stats; + $this->cache["ustats_".strtolower($name)] = $ustats; $this->cache["ustats_".strtolower($name)."_time"] = time(); return $ustats; }