IRC_GetChannelUserList and some issuess
#8

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.
Reply


Messages In This Thread
IRC_GetChannelUserList and some issuess - by Yaa - 03.01.2017, 21:39
Re: IRC_GetChannelUserList and some issuess - by Yaa - 04.01.2017, 11:07
Re: IRC_GetChannelUserList and some issuess - by oMa37 - 04.01.2017, 11:28
Re: IRC_GetChannelUserList and some issuess - by Yaa - 04.01.2017, 12:57
Re: IRC_GetChannelUserList and some issuess - by oMa37 - 04.01.2017, 12:59
Re: IRC_GetChannelUserList and some issuess - by Yaa - 04.01.2017, 13:13
Re: IRC_GetChannelUserList and some issuess - by oMa37 - 04.01.2017, 13:30
Re: IRC_GetChannelUserList and some issuess - by Konstantinos - 04.01.2017, 13:42
Re: IRC_GetChannelUserList and some issuess - by Yaa - 04.01.2017, 13:55
Re: IRC_GetChannelUserList and some issuess - by iLearner - 06.01.2017, 11:25

Forum Jump:


Users browsing this thread: 2 Guest(s)