Well iv been having problems with people coming into my channel under someones else nick. We try to take action by devoicing them and making them ID so chanvserv can revoice.
Heres what I plan on doing and wonder if it possible.
1. I wana make a script that looks for a certain part of a $nick. For instance if the nick is "[8_boo_8]" i want my script to look for the "[8_" part of the nick and take action.
Examples..
Script should take action is nick is like...
[8_boo_322]
[8_sddsdsd
etc..
I was wondering if a on join command is the best for this? Here is what I have so far.
on *:join:#: {
if ($nick == *[8_* || *[[8_* ) {
mode $chan -v $nick
mode $chan +m
.notice $nick Please ID to receive a voice!
msg $chan $nick has be devoiced due to suspicious activity.
ifelse { halt }
}
The only part I think i muffed up is the "If" part, idk how to make it look for a certain part of a name. And how do I add more like "[8_", "[[8_" etc..