Home » Networking » Net_SmartIRC » Bug #6650
Channel synching problem
Details
| Submitted | 2006-02-01 02:53 UTC |
|---|---|
| From | anon at yeah dot com |
| Status | Bogus |
| Package | Net_SmartIRC |
| PHP Version | 5.0.4 |
| OS | Win 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