fixed small cache bug within PulseBot.class.php
authorpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 04:09:06 +0000 (06:09 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 04:09:06 +0000 (06:09 +0200)
Bots/PulseBot.class.php

index 22a5c93325b2eacf2c7506e6ebdd4a035d70356e..c7e47da80d4c5cd517fda72d17de833cc81f6e8a 100644 (file)
@@ -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;
                        }