need help with IRC
#1

pawn Код:
IRCCMD:say(botid, channel[], user[], host[], params[])
{
    if (IRC_IsVoice(botid, channel, user))
    {
        if (!isnull(params))
        {
            new msg[128];
            format(msg, sizeof(msg), "*** %s on IRC: %s", user, params);
            IRC_GroupSay(gGroupID, IRC_ECHOCHANNEL, msg);
            MessageALL(IRC_COL, msg);
            return 1;
        }
    }
    return 1;
}
This just started happening about a few weeks ago, before that it worked fine.
First of all, I have two connected bots and joined them to group gGroupID, then when I type !say, it sends the message ingame twice, and also sends it twice on the IRC channel (so basically it calls everything twice, for ever one time I use !say). Some other IRC cmds are also doing the same thing, does anyone know whats causing this? And no I don't have this function twice in my gamemode, I already double checked.

pawn Код:
gBotID[0] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_1_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
    IRC_SetIntData(gBotID[0], E_IRC_CONNECT_DELAY, 20);
    gBotID[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_2_NICKNAME, BOT_2_REALNAME, BOT_2_USERNAME);
    IRC_SetIntData(gBotID[1], E_IRC_CONNECT_DELAY, 30);
    gGroupID = IRC_CreateGroup();
Reply


Messages In This Thread
[No subject] - by DeathTone - 10.05.2012, 14:56
Re: need help with IRC - by DeathTone - 10.05.2012, 19:27
Re: need help with IRC - by denNorske - 10.05.2012, 22:11
Re: need help with IRC - by Vince - 10.05.2012, 22:54
Re: need help with IRC - by DeathTone - 10.05.2012, 23:54
Re: need help with IRC - by DeathTone - 11.05.2012, 22:11
Re: need help with IRC - by Face9000 - 11.05.2012, 23:26
Re: need help with IRC - by DeathTone - 12.05.2012, 00:02
Re: need help with IRC - by Face9000 - 12.05.2012, 09:12
Re: need help with IRC - by DeathTone - 12.05.2012, 17:31

Forum Jump:


Users browsing this thread: 2 Guest(s)