Simple Caller nick

By Premier*uekk on Jun 20, 2008

Just A Small Caller nick :) Thats All
Image

on 1:TEXT:*:#: { 
  if ($1 == $me) { /echo -a <CallerNick> [ $nick ] Is Calling You On [ $chan ] }
}

Comments

Sign in to comment.
Jethro   -  Apr 30, 2011

The use of isin operator has a drawback: it triggers if someone named LittleJohn is called while your own nickname is DaJohnny.

The best method will have to be regex, but if regex is unbeknownst to you, you should at least do:

if ($istok($strip($1-),$me,32)) {
 Respond  
Sharky_Dude   -  Apr 30, 2011

You really should use isin instead of $1, what if your name is John and I say Hey John? your nick would be placed at $2. Or if I say Hey you going to be on tomorrow John? now it becomes $8. Also what's up with the CallerNick? just redundant. if CallerNick is $nick why have the word CallerNick? and you know the purpose of the caller why have it say so much? also this snippet wont let you know if someone said your name when you are away from your computer or on another site so why not aline it? And maybe add some color.

on 1:TEXT:*:#: {
if ($me isin $$1-)
window @Nick
aline @Nick 4,1 $nick 11in4 $chan 11at4 $timestamp $1-
/echo -a $nick called you in $chan
}

 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.