i made bots for irc to invite admins to the admins channel but its not working its not inviting admin
pawn Код:
forward CheckIsIRCAdmin(botid,channel[],user[]);
public IRC_OnUserSetChannelMode(botid, channel[], user[], host[], mode[])
{
printf("*** IRC_OnUserSetChannelMode (Bot ID %d): User %s (%s) on %s set mode: %s!", botid, user, host, channel, mode);
SetTimer("CheckIsIRCAdmin",500,0);
return 1;
}
public CheckIsIRCAdmin(botid,channel[],user[])
{
if(IRC_IsOwner(botid, channel, user))
{
IRC_InviteUser(1,IRC_ADMINCHANNEL,user);
printf("*** (Bot ID %d): Invite To Admin Channel Sent To %s",botid,user);
return 1;
}
return 1;
}
everything is working bots everything but doesn't send an invite to the admins i don't know whats the proplem