28.04.2010, 20:18
Ok, so I've just started re-writing my IRC echo script from to 0.2x to upgrade it to 0.3. I'm using Incognito's really nice, IRC plug-in. The problem is this:
The function I created above is supposed to join the bots to all channels, but they only join the first one (IRC_CHANNEL). What am I doing wrong here?
pawn Код:
public
IRC_OnConnect(botid)
{
printf("*** IRC_OnConnect: Bot ID %d connected!", botid);
// Join the channel
JoinChannels(botid);
// Add the bot to the group
IRC_AddToGroup(gGroupID, botid);
return 1;
}
forward
JoinChannels(botid);
public
JoinChannels(botid)
{
IRC_JoinChannel(botid, IRC_CHANNEL);
IRC_JoinChannel(botid, CHAT_CHAN);
IRC_JoinChannel(botid, VIP_CHAN);
IRC_JoinChannel(botid, CREW_CHAN);
return 1;
}