PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_IRC » Bug #1686

Kick-event handler is missing

Details

Submitted2004-06-20 11:54 UTC
FromSniperBeamer at web dot de
StatusSuspended
PackageNet_IRC
PHP Version4.3.7
OSWindows 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