Jethro commented on a Page, Simple Nick Caller  -  Jun 20, 2010

ThE ViPeR, this is not a pastebin, where you randomly post your personal snippet and be done with it. When you submit a snippet, be sure it's suitable for the general public. For starters, you should remove this line:> if ($chan == #services-diagnostics) { halt }

Your overall code can further be improved with regex:

on $*:text:$(/\s\Q $+ $me $+ \E\b|(\s\Q $+ $anick $+ \E)\b/iS):#:{
  if ((!$istok(OperServ iServ,$nick,32)) && ($regml(1) = $anick)) { 
    .notice YourNickHere 15,1(12,1Alert15,1)14,1 Your name $&
      was said by 15,1(12,1 $+ $nick $+ 15,1)14,1 on this $&
      server 15,1(12,1 $+ $server $+ 15,1) in this $&
      room 15,1(12,1 $chan $+ 15,1) 14,1 $&
      $time(ddd h:nn.ss TT) 15,1(12,1 $nick $+ 15,1: $1- 12,1)
  }
  else { .notice YourNickHere 15,1(12,1Alert15,1)14,1 Your name was $&
      said by 15,1(12,1 $+ $nick $+ 15,1)14,1 on this $&
      server 15,1(12,1 $+ $server $+ 15,1) in this room $&
      15,1(12,1 $chan $+ 15,1) 14,1 $time(ddd h:nn.ss TT) 15,1(12,1 $nick $+ 15,1: $1- 12,1) 
  }
}

Use !$istok to exclude the server nick, along with an if-then-else condition.

 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.