I use last SmartIrc version and I use listenfor function with this "$irc->listenFor(SMARTIRC_TYPE_NOTICE);" the bot crash with this message "May 14 04:02:29 DEBUG_ACTIONHANDLER: actionhandler match found for id: 1 type: 16 message: "Vous devez tre un oprateur du channel pour l'enregistrer." regex: ".*" May 14 04:02:29 DEBUG_ACTIONHANDLER: calling method "net_smartirc_listenfor->handler" May 14 04:02:29 DEBUG_ACTIONHANDLER: listenfor handler called May 14 04:02:29 DEBUG_CONNECTION: disconnected May 14 04:02:29 DEBUG_ACTIONHANDLER: actionhandler(2) registered"
I use command from a MySQL database and function while "while($data2 = mysql_fetch_array($requete)) {
$bot_name="".$data2["bot_name"]."";
$command="".$data2["commande"]."";
Hello,
I use last SmartIrc version and I use listenfor function with this "$irc->listenFor(SMARTIRC_TYPE_NOTICE);" the bot crash with this message "May 14 04:02:29 DEBUG_ACTIONHANDLER: actionhandler match found for id: 1 type: 16 message: "Vous devez tre un oprateur du channel pour l'enregistrer." regex: ".*" May 14 04:02:29 DEBUG_ACTIONHANDLER: calling method "net_smartirc_listenfor->handler" May 14 04:02:29 DEBUG_ACTIONHANDLER: listenfor handler called May 14 04:02:29 DEBUG_CONNECTION: disconnected May 14 04:02:29 DEBUG_ACTIONHANDLER: actionhandler(2) registered"
I use command from a MySQL database and function while "while($data2 = mysql_fetch_array($requete)) {
$bot_name="".$data2["bot_name"]."";
$command="".$data2["commande"]."";
$irc->message(SMARTIRC_TYPE_CHANNEL, $bot_name, $command );
$irc->listenFor(SMARTIRC_TYPE_NOTICE);
$irc->message(SMARTIRC_TYPE_CHANNEL,'#test', $result );
}"
Thanks for help
you should read the included HTML documentation and the HOWTO...
also there are lots of examples... your usage of SmartIRC is completely wrong...