IRC_OnUserJoinChannel (Incognito)
#1

Hey i am using Incognito's irc plugin and need help in IRC_OnUserJoinChannel.
I tried searching but found nothing, the default irc.pwn callback

Код:
public IRC_OnUserJoinChannel(botid, channel[], user[], host[])
{
	printf("*** IRC_OnUserJoinChannel (Bot ID %d): User %s (%s) joined channel %s", botid, user, host, channel);
	return 1;
}
This printf prints logs example when someone joins:

Код:
[12:46:59] *** IRC_OnUserJoinChannel (Bot ID 1): User [ANGEL]_Rocko (Rocko@265BC44E.6A174064.227125C9.IP) joined channel #test
[12:46:59] *** IRC_OnUserJoinChannel (Bot ID 2): User [ANGEL]_Rocko (Rocko@265BC44E.6A174064.227125C9.IP) joined channel #test
Only the bot id's are different, and if i add SendClientMessageToAll to notify ingame players. Then it repeats like the printf.

How to fix that?
Reply
#2

I want that "join msg" not to be repeated because i have 4 bots.
And when some user on irc joins it prints the logs 4x.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)