I currently have this:
on *:TEXT:*:#: {
if ($nick isop $chan) && ($me == no-nick) && ($me isop $chan) {
if ($1 == +v) { /mode $chan +v $2- | msg $chan $2- should now have voice }
}
}
But, if there is a non-existant user, e.g. fffff then it says:
<@no-nick> fffff should now have voice.
Is there a way to stop it?
I think it is something like:
on *:TEXT:*:#: {
if <the code that will only let the request through when a user is on channel> {
if ($nick isop $chan) && ($me == no-nick) && ($me isop $chan) {
if ($1 == +v) { /mode $chan +v $2- | msg $chan $2- should now have voice }
}
}
}