Revenge slaps

By LeLewCrew on May 27, 2008

Revenge Slaps :)

;Revenge slap

;alias to turn revenge slap on/off
alias slap.status {
  set %slap.status $iif(%slap.status,0,1)
}

;channel popup menu
menu channel {
  .$iif(%slap.status,$style(1)) &»Revenge slap«:slap.status
}

;on a slap action event.
on *:action:$(* $+ $me $+ *):#:{
  if (%slap.status) {
    ;get string
    var %action.me = $gettok($1-,1-100,32)
    ;slap him back
    describe $chan $replace(%action.me,$me,$nick)
    ;ignore slaps form $nick for 5 seconds.
    .ignore -u5 $mask($fulladdress,3)  
  }
}

Comments

Sign in to comment.
napa182   -  May 27, 2008

you could just do this so it only works on slaps and not any action done to you.

on *:action:$($+(*,slap,*,$me,*)):#:{ if (%slap.status) { describe $chan $replace($1-,$me,$nick) } }
menu channel {
  .$iif(%slap.status,$style(1)) &»Revenge slap«:set %slap.status $iif(%slap.status,0,1)
}
 Respond  
Jonesy44   -  May 27, 2008

u dont need the $gettok.

just use $replace($1-,$me,$nick)

 Respond  
LeLewCrew   -  May 27, 2008

yee haa

 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.