IRC Bot private message function
#2

Is this what you mean?
pawn Код:
public IRC_OnUserSay(botid, recipient[], user[], host[], message[])
{
    printf("*** IRC_OnUserSay (Bot ID %d): User %s (%s) sent message to %s: %s", botid, user, host, recipient, message);
    // Someone sent the first bot a private message
    if (!strcmp(recipient, BOT_1_NICKNAME))
    {
        IRC_Say(botid, user, "You sent me a PM!");
    }
    return 1;
}
On this line..
pawn Код:
if (!strcmp(recipient, BOT_1_NICKNAME))
You can change BOT_1_NICKNAME to other ones like this.. BOT_NUMBER_NICKNAME
Reply


Messages In This Thread
IRC Bot private message function - by _Outbreak_ - 01.05.2011, 21:46
Re: IRC Bot private message function - by dr.pepper - 01.05.2011, 21:58
Re: IRC Bot private message function - by _Outbreak_ - 01.05.2011, 22:57

Forum Jump:


Users browsing this thread: 1 Guest(s)