16.02.2012, 15:07
I mean:
just change the name of the variable at the places you want to use it.
pawn Код:
new msg2[512];
if(botid == IRC_EchoConnection[0])
{
print("[IRC] Socket 1 established");
format(msg2,sizeof(msg2), "Privmsg2 Nickserv identify %s",BotPass);
IRC_SendRaw(IRC_EchoConnection[0], msg2);
IRC_JoinChannel(IRC_EchoConnection[0], EchoChan);
}
else if(botid == IRC_EchoConnection[1])
{
print("[IRC] Socket 2 established");
format(msg2,sizeof(msg2), "Privmsg2 Nickserv identify %s",BotPass);
IRC_SendRaw(IRC_EchoConnection[1], msg2);
IRC_JoinChannel(IRC_EchoConnection[1], EchoChan);
}
return 1;
}