I'm currently using a script that someone else has made and in it has a guest kicker which kicks nicks that include the word Guest but for some reason there is an error and I am uinable to find where the error is coming from. Any help on this is greatly appreciated. What happens is when the guest kicker is turned on and someone with guest in their nickname enters the room i see
• Joins : Guest2248460 (blah@blahblahblah)
[ø] Error : /= is an unknown command
. The guest kicker works and does it's thing but always does this when a guest nick enters. Below is the code if somone could please look over it and help me it would truely stop me from going insane.
alias guestkick {
if ($nick !isop $chan) && ((%guest.warned. $+ $nick) != 1) {
if (($nick ison $chan) && ($me isop $chan)) goto kick
else { goto end }
:kick
.timerguest.msg 1 5 msg # $nick Change Your nick to a real nick or get kicked. Type /nick (new nick). You have 60 seconds before you will be kicked. $logo2 | set %guest.warned. $+ $nick 1
.timerguest.ban 1 29 ban -u60 $chan $nick
.timerguest.kick 1 30 kick $chan $nick $c(1) $+ No guests allowed in $bracket($chan) - 1 minute ban
.timerguest.msg.last 1 31 .msg $nick You were kicked for using a GUEST NICK and put on a 60 second ban. Change your nick and then you can come back. Type /nick (new nick). $logo2 | unset %guest.warned. $+ $nick
}
:end
}
on @*:ACTION:*:#:{
if ((*guest* iswm $nick) && (%guest.kick == On)) guestkick
else { goto end }
:end
}
on @*:NICK:{
if (*guest* !iswm $newnick) { .timerguest.ban off | .timerguest.kick off | .timerguest.msg.last off }
else { goto end }
:end
}
on @*:JOIN:#: {
if ((*guest* iswm $nick) && ($me isop #) && (%guest.kick == on)) guestkick
else { goto end }
:end
}
on @*:TEXT:*:# {
if ((*guest* iswm $nick) && (%guest.kick == On)) guestkick
else { goto end }
:end
}