Quote:
Originally Posted by Incognito
- IRC_GetChannelUserList(botid, const channel[], dest[], maxlength = sizeof dest);
- Obtains a space-delimited list of all users in a channel
Note: This will store every user's name separated by a single space in dest (make sure that the array size is large enough to fit all of the names).
|
You have used it correctly but until you find out why this happens, I can only suggest a workaround. Have a global variable and:
- increase when a user joins the channel (
IRC_OnUserJoinChannel).
- decrease when a user leaves the channel (
IRC_OnUserLeaveChannel).
If a player is kicked then
IRC_OnUserKickedFromChannel will be called and I'm not sure if
IRC_OnUserLeaveChannel will be called too as I haven't used the plugin. If it won't, decrease in this callback as well.