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:
778750b
)
fixed ExampleBot.class.php
author
pk910
<philipp@zoelle1.de>
Wed, 14 Dec 2011 21:06:53 +0000
(22:06 +0100)
committer
pk910
<philipp@zoelle1.de>
Wed, 14 Dec 2011 21:06:53 +0000
(22:06 +0100)
Bots/ExampleBot.class.php
patch
|
blob
|
history
diff --git
a/Bots/ExampleBot.class.php
b/Bots/ExampleBot.class.php
index b355205651516f821a9e2a4a0cdee4704e34fc03..83b0afc7fe460f3458ce9a56050e3f6b1999025e 100644
(file)
--- a/
Bots/ExampleBot.class.php
+++ b/
Bots/ExampleBot.class.php
@@
-42,10
+42,11
@@
class {$_NAME} extends Bot { // {$_NAME} will be replaced by our script later ;
$nick = "ExampleBot"; // Please note: If this user already exists on another Server it will be killed!
$ident = "Example";
$host = "Example.Bot";
$nick = "ExampleBot"; // Please note: If this user already exists on another Server it will be killed!
$ident = "Example";
$host = "Example.Bot";
+ $ip = "::1";
$realname = "Thats an example Bot :)";
$modes = "i"; //we don't need a leading + (that will be added automatically)
$realname = "Thats an example Bot :)";
$modes = "i"; //we don't need a leading + (that will be added automatically)
- $this->example_bot = $this->uplink->addUser($nick,
$ident,$host,$realname,$uptime,$modes
); //addUser($nick, $ident, $host, $ip, $modes, $realname)
+ $this->example_bot = $this->uplink->addUser($nick,
$ident, $host, $ip, $modes, $realname
); //addUser($nick, $ident, $host, $ip, $modes, $realname)
if(is_a($this->example_bot, "P10_User")) { // A new user was created :)
//ok let's join a channel
$this->uplink->join($this->example_bot, "#test");
if(is_a($this->example_bot, "P10_User")) { // A new user was created :)
//ok let's join a channel
$this->uplink->join($this->example_bot, "#test");