PEAR is archived and read-only

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

Home » Networking » Net_SmartIRC » Bug #6650

Channel synching problem

Details

Submitted2006-02-01 02:53 UTC
Fromanon at yeah dot com
StatusBogus
PackageNet_SmartIRC
PHP Version5.0.4
OSWin XP
Roadmaps(Not assigned)

Comments

[2006-02-01 02:53 UTC] anon at yeah dot com

Description:
------------
For already i have been strugling with a nuisance obvously concerning the channel syncing. I am simple trying to reject (kick) from a particular channel every user connected to e particular server. So on every user join (SMARTIRC_TYPE_JOIN) i expect to have his server as a property "server" in the array "$irc->channel['mychannel]->users[$data->nick]". Unfortunately that is not the case and apart from the 'server' property some other are also not set (realname,hopcount,etc.)

Still more confusing is that the information over that user is available is the method is called when he says something in the channel (SMARTIRC_TYPE_CHANNEL). Take a look at the examples below:

Test script:
---------------
...
$irc->setChannelSyncing(TRUE);
...

function join (&$irc,&$data) {
echo 'after joining, server: '. $irc->channel['#mychannel']->users[$data->nick]->server;

}

function channel (&$irc,&$data) {
echo 'after talking, server: '. $irc->channel['#mychannel']->users[$data->nick]->server;

}

Expected result:
----------------
after joining, server: irc.server.com
after talking, server: irc.server.com

Actual result:
--------------
after joining, server:
after joining, server: irc.server.com