0 Members and 1 Guest are viewing this topic.
Fatal error: Call to a member function message() on a non-object in C:\aobots\Bebot\modules\IRC.php on line 234
$this -> irc -> message(SMARTIRC_TYPE_CHANNEL, $this -> bot -> settings -> get("Irc", "Channel"), $ircmsg);
Bot Client: v0.5.0.svn(snapshot)
This hasn't been changed at all, are you sure you are loading the SmartIRC class?EDIT: Another reason this error can happen is when you call the send_irc() function while you aren't connected to IRC yet.
$module_directories = "modules/irc";
// Relays $msg to IRC module (and from there after formatting to IRC channel) function relay_to_irc($msg) { { if ($this -> bot -> settings -> get("irc", "connected")) { $this -> bot -> irc -> send_irc("", "", $this -> bot -> irc -> strip_formatting($msg)); } } }
//$this -> bot -> irc -> send_irc("", "", $msg);