Hey
This is not fully my code, I got the on nick part from a tutorial page as I couldn't work it out.
Load into remotes, if a user joins a room with a guest nick then it will kick and ban them for 15 minutes. If they join your channel then do /nick guest it will kick and ban for 15 minutes (the times can be changed and can make it so it kicks only, but would be advise to ban for a short period weather its only 2 minutes etc just to stop any flood joins happening)
on @*:join:#: {
if (Guest* iswm $nick) {
.ban -ku900 # $nick 2 No Guest nicks allowed, /nick NewNickname
}
}
on *:nick: {
if (Guest* iswm $newnick) {
VAR %i = 0
WHILE (%i < $comchan($newnick,0)) {
INC %i
IF ($me isop $comchan($newnick,%i)) {
.ban -ku900 $comchan($newnick,%i) $newnick 2 Banned for 15 minutes, Guest nicks are not allowed, /nick NewNickname to change your name.
}
}
}
}
If you want to add more names to the list say for example anyone with word happy , moody or sexy in the name do the following
if ((happy* iswm $newnick) || (moody* iswm $newnick) || (sexy* iswm $newnick)) {