a nice addition would be a connection to an IRC server
phpFreeChat has a lot in common with irc so this backend should be possible
gonna give it a look the comming next weeks
Moderators: OldWolf, re*s.t.a.r.s.*2
kerphi wrote:1- call a script that initiate a socket connection to an irc server and leave open the connection (but how?)
2- call this script periodically and reuse the above socket connexion
If we find a technical way to accomplish this example, I think we can start working serenely on IRC backend implementation.
$irc = &new Net_SmartIRC();
$irc->setDebug(SMARTIRC_DEBUG_ALL);
$irc->setUseSockets(TRUE);
$irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^test', $bot, 'query_test');
$irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^test', $bot, 'channel_test');
$irc->connect('irc.freenet.de', 6667);
$irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example.php)', 0, 'Net_SmartIRC');
$irc->join(array('#smartirc-test','#test'));
$irc->listen();
$irc->disconnect();
Return to Feature Requests (v1.x)
Users browsing this forum: No registered users and 1 guest