Home » Networking » Net_IRC » Bug #1686
Kick-event handler is missing
Details
| Submitted | 2004-06-20 11:54 UTC |
|---|---|
| From | SniperBeamer at web dot de |
| Status | Suspended |
| Package | Net_IRC |
| PHP Version | 4.3.7 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2004-06-20 11:54 UTC] SniperBeamer at web dot de
Description:
------------
It doesn't remove the user from the nicklist if he gets kicked.
I use Net_IRC 0.0.7.
Reproduce code:
---------------
Patch:
------
Add to $callback_list:
'KICK' => array(array('Net_IRC_Event','event_kick')),
Add to Net_IRC_Event:
function event_kick($server_id,&$irc, $origin, $orighost, $target, $params)
{
list ($channel, $nick) = split(' ', $target);
$irc->del_nickone( $server_id, $channel, $nick);
}
[2004-06-20 13:10 UTC] cox at idecnet dot com
This class is no longer maintained, I'd recommend you to use Net_SmartIRC instead.
Anyway, if you send patches (diff -u) against the latest CVS version, I'll commit them.
Tomas V.V.Cox