fixed ExampleBot.class.php
authorpk910 <philipp@zoelle1.de>
Wed, 14 Dec 2011 21:06:53 +0000 (22:06 +0100)
committerpk910 <philipp@zoelle1.de>
Wed, 14 Dec 2011 21:06:53 +0000 (22:06 +0100)
Bots/ExampleBot.class.php

index b355205651516f821a9e2a4a0cdee4704e34fc03..83b0afc7fe460f3458ce9a56050e3f6b1999025e 100644 (file)
@@ -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";
+                       $ip = "::1";
                        $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");