Jethro commented on a Page, Test Of !Nick  -  Oct 21, 2011

You can use regex:

ON $*:Notice:/(illegal|currently|changed)/iS:*: {
  if ( $nick == OperServ ) {
    if ($regml(1) == illegal) {
      notice %nick The %newnick Have Illegal Charters
    }
    elseif ($regml(1) == currently) {
      notice %nick The %newnick Is Currently In Use
    }
    else {
      notice %newnick Your Nick Has Been Changed To %newnick
    }
  }
}

This will tell the notice event to listen to those three words if found, rather than use a general notice to listen to all notices via the if checks.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.