Thank on Voice/Op

By Crushed on Sep 15, 2010

Thanks On Voice op

On 1:Op:#: { if ($opnick == $me)  && (%autothanks == On) { /msg $chan Thanks For The :( OP ): :( $nick ):  }
}
On 1:VOICE:#: { if ($vnick == $me)  && (%autothanks == On) { /msg $chan Thanks For The :( Voice ): :( $nick ):  }
}
menu status,channel,menubar {
  Setup
  .Auto Systems
  ..Auto Thanker OnOff
  ...On:/set %autothanks on | /echo -a AutoThanks Is Now On $logo
  ...Off:/set %autothanks Off | /echo -a AutoThanks Is Now Off $logo
}

Comments

Sign in to comment.
a careful warchild   -  Sep 18, 2010

Napa's right.

 Respond  
napa182   -  Sep 18, 2010

no need for two diff events as well no need for global vars.
just one of the many ways to go about this, but auto talkers are annoying and prob will end up getting you banned from channels.

#thank off
On !*:rawmode:#: { 
  if ($regex($1,/\+[vo]/) && $2 = $me) {
    msg # Thanks For The :( $replace($1,+o,OP,+v,Voice) ): :( $nick ):  
  }
}
#thank end
menu status,channel,menubar {
  .Turn Auto Thanker $iif($group(#thank) = on,Off,On):{
    $+(.,$iif($group(#thank) = on,dis,en),able) #thank
    echo -a AutoThanks Is Now $group(#thank)
  }
}
 Respond  
a careful warchild   -  Sep 18, 2010

$logo ?

Not sure why you included that, as $logo isn't an identifier on most clients ;]

 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.