nick alert

By eyiezinc on Jun 28, 2009

simple snippet for nick alert

;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
;name: nick alert
;author: MasTer^PriNce
;version 1.0
;comment: simple snippet for nick alert
;Email: EyiezINC@gmail.Com
;Website: Www.EyiezINC.info
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

;this is for text 
On *:text:*:#: {
  if ($istok($strip($1-),$me,32)) && ($active != $chan) { inc -u2 %psafe | if (%psafe == 1) { $iif($left($active,1) != $chr(35),$iif($active != status window,$iif($active == $nick,msg $chan yes? can i help you?,describe $chan now private chat with $active),describe $chan now check something at status window),describe $chan now active at channel $remove($active,$chr(35))) | .echo -a $nick call you at $chan } }
}
;and this is for action
On *:action:*:#: {
  if ($istok($strip($1-),$me,32)) && ($active != $chan) { inc -u2 %psafe | if (%psafe == 1) { $iif($left($active,1) != $chr(35),$iif($active != status window,$iif($active == $nick,msg $chan yes? can i help you?,describe $chan now private chat with $active),describe $chan now check something at status window),describe $chan now active at channel $remove($active,$chr(35))) | .echo -a $nick call you at $chan } }
}

Comments

Sign in to comment.
WorldDMT   -  Jun 29, 2009

to not repeat u can use an alias if u want like this (just an idea)

on *:action:*:#:call # $nick $me $active $1-
on *:text:*:#:call # $nick $me $active $1-
alias call {
  tokenize 32 $strip($1-)
  if $istok($5-,$3,32) {
    if ($4 == status window) describe $1 now check something at status window
    elseif ($4 == $2) msg $2 yes? can i help you $2 ?
    elseif ($4 ischan) describe $1 now active at channel $remove($4,$v2)
    elseif ($istok($regsubex($str(.,$query(0)),/./g,$query(\\n) $+ $chr(46)),$4,46)) describe $1 now private chat with $4
    echo -a $2 call you at $1
  }
}
 Respond  
napalm`   -  Jun 29, 2009

Regardless, this code does nothing but set a variable for two seconds if your nickname is typed in a channel you are not looking at.

Fail.

 Respond  
napalm`   -  Jun 29, 2009

Jethro you are incorrect.

if ($active != $chan) this means If the $active channel window is not the channel this event took palce in, continue.

if ($active !ischan) this means If the $active channel window is in fact a channel i am on, continue.

 Respond  
Jethro   -  Jun 28, 2009

As the title states, it's a pager where it alerts you when someone calls out to you in a channel where you are.

For your info, There is an operator for > if ($active != $chan) ->

if ($active !ischan)

These are the same thing, but ischan is a bit shorter. lol

 Respond  
knoeki   -  Jun 28, 2009

okay, so... what does this actually do? how does it work? There's a reason that there's a description field, use it properly. Not even attempting to decipher your code gave me an idea what this exactly does.

 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.