projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
051ecdd
)
fixed "Zer0n is stupid"-Bug
author
pk910
<philipp@zoelle1.de>
Tue, 30 Aug 2011 11:24:35 +0000
(13:24 +0200)
committer
pk910
<philipp@zoelle1.de>
Tue, 30 Aug 2011 11:24:35 +0000
(13:24 +0200)
Bots/ExampleBot.class.php
patch
|
blob
|
history
diff --git
a/Bots/ExampleBot.class.php
b/Bots/ExampleBot.class.php
index d01e5cace5363c9bab18d5942f17819cb7b0665c..b355205651516f821a9e2a4a0cdee4704e34fc03 100644
(file)
--- a/
Bots/ExampleBot.class.php
+++ b/
Bots/ExampleBot.class.php
@@
-83,7
+83,7
@@
class {$_NAME} extends Bot { // {$_NAME} will be replaced by our script later ;
if($exp[0] == "hi") {
$this->uplink->privmsg($this->example_bot, $channel, "Hallo ".$user->getNick()); // We send a message back - documentation is following
}
- if($exp[0] == "-users") {
+ if($exp[0] == "-users"
&& is_a($channel, "P10_Channel")
) {
$user_str = "";
foreach($channel->getUsers() as $chan_user) {
$extra="";