projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe66991
)
fixed small cache bug within PulseBot.class.php
author
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 04:09:06 +0000
(06:09 +0200)
committer
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 04:09:06 +0000
(06:09 +0200)
Bots/PulseBot.class.php
patch
|
blob
|
history
diff --git
a/Bots/PulseBot.class.php
b/Bots/PulseBot.class.php
index 22a5c93325b2eacf2c7506e6ebdd4a035d70356e..c7e47da80d4c5cd517fda72d17de833cc81f6e8a 100644
(file)
--- a/
Bots/PulseBot.class.php
+++ b/
Bots/PulseBot.class.php
@@
-48,7
+48,7
@@
class {$_NAME} extends Bot {
} else {
$this->pulsebot = $old;
}
} else {
$this->pulsebot = $old;
}
- BotLoader::registerDB($this, "
PulseB
ot");
+ BotLoader::registerDB($this, "
pulseb
ot");
ModCMD::bind($this, BIND_CHANMSG, "recive_privmsg");
ModCMD::bind($this, BIND_JOIN, "recive_join");
ModCMD::bind($this, BIND_QUIT, "recive_quit");
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);
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)] = $
u
stats;
$this->cache["ustats_".strtolower($name)."_time"] = time();
return $ustats;
}
$this->cache["ustats_".strtolower($name)."_time"] = time();
return $ustats;
}