yelow79 commented on a Page, Nick Alert  -  Aug 14, 2011

Jethro_ there is a problem with the way you did this. first of all

(/\b(\Q $+ $me $+ \E|\Q $+ %altnick $+ \E)\b/iS)

did not need to be changed from

$(/\b( $+ $me $+ | $+ %altnick $+ )\b/iS)

I tested and it works the same either way.

but the real problem is that there now has to be an alternative trigger set in order for this to not go off constantly from people/bots not even saying one of the triggers.

but I also have another question that I hope someone can help me with.

I have added

  .set nick to ignore {
    set %ignick $addtok(%ignick,$$?"enter a nickname to ignore:",124)
    echo 3 -a $! will now be ignored!
  }
  .del ignored nick {
    if ($istok(%ignick,$$?"Enter nickname to delete from ignore list:",124)) {
      set %ignick $remtok(%ignick,$!,1,124)
      echo 3 -a $! will no longer be ignored!
    }
    else {
      $input( $! is not in the ignore list.,o)
    }
  }

so that the whole thing looks like this

menu status,menubar,channel,query {
  Nick Alert
  .set $iif(%alert == on, OFF, ON ) :{
    set %alert $iif(%alert == on,off,on)
    echo 3 -a nickalert is now turned %alert
  }
  .set alt. trigger {
    set %altnick $addtok(%altnick,$$?"enter an alernative nickname here:",124)
    echo 3 -a your alternative nick $! has been added to my alternative list!
  }
  .del alt. trigger {
    if ($istok(%altnick,$$?"Enter an alernative nickname to delete:",124)) {
      set %altnick $remtok(%altnick,$!,1,124)
      echo 3 -a your alternative nick $! has been deleted successfully!
    }
    else {
      $input(The alternative nickname $! is either deleted or doesn't exist in my alterntive nick list.,o)
    }
  }
  .set nick to ignore {
    set %ignick $addtok(%ignick,$$?"enter a nickname to ignore:",124)
    echo 3 -a $! will now be ignored!
  }
  .del ignored nick {
    if ($istok(%ignick,$$?"Enter nickname to delete from ignore list:",124)) {
      set %ignick $remtok(%ignick,$!,1,124)
      echo 3 -a $! will no longer be ignored!
    }
    else {
      $input( $! is not in the ignore list.,o)
    }
  }
}
on $*:text:$(/\b( $+ $me $+ | $+ %altnick $+ )\b/iS):#: {
  if (%alert == on) && ($active $nick != $chan %ignick) {
    echo -a 4[ $+ $time $+ ] $nick said your name in $chan $+ : $1-
    beep 3
  }
}

however I have tried a few different ways and I can't get it to ignore the people in the list

 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.