30.06.2013, 17:57
This is what in the IRC script
but when i try /cs access #igzls add LSCNR 3 it says Channel access lists may only contain registered nicknames.
PHP код:
public IRC_OnConnect(botid)
{
new string[256];
printf("*** IRC_OnConnect: Bot ID %d connected!", botid);
// Join the channel
if(botid == 1 || botid == 2)
{
IRC_JoinChannel(botid, IRC_CHANNEL);
format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
IRC_SendRaw(botid, string);
IRC_AddToGroup(gGroupID, botid);
}
if(botid == 3)
{
format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
IRC_SendRaw(botid, string);
format(string,sizeof(string),"JOIN %s :%s",IRC_ADMINCHANNEL,IRC_ADMINCHANNEL_PASSWORD);
IRC_SendRaw(botid, string);
IRC_AddToGroup(gGroupAdminID, botid);
}
// Add the bot to the group
return 1;
}