}
public function unload($rehash = false) { //this function is triggered, when the Bot is unloaded... If it's just a rehash the return value of this method is passed to $old in the load method.
- return $this->example_bot;
+ if($rehash) {
+ return $this->example_bot;
+ } else {
+ $this->uplink->delUser($this->example_bot, "Bye.");
+ }
}
public function recive_privmsg($user, $channel, $message) {