01.05.2011, 21:46
Hey, could anyone tell me how i can enable my irc bots to accept or reject commands or message from certain players. I'm talking about private messages not messages in the irc channel itself.
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;
}
if (!strcmp(recipient, BOT_1_NICKNAME))