glacier_rat

Glacier_Rat

Apr 24th, 2010
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. on $*:TEXT:/^(Brb|bb[ls]|afk)/Si:#: {
  2. if ( $chan == #xbnc #irchelp ) { halt }
  3. if ($nick != Glacier_Rat) || ($istok($mutedChannels,$chan,32)) || (%awayreason) { halt }
  4. set %awaytime $ctime
  5. set %awayreason $iif($2,$2-,Away)
  6. msg $chan 10[12»10 $+ $nick $+ 12«10] 14is now 10[12»10Away12«10] 14reason:10 %awayreason 14left at: 10[12»10 $+ $time $+ 12«10]
  7. }
  8.  
  9.  
  10. on *:TEXT:back:#: {
  11. if ( $chan == #xbnc #irchelp ) { halt }
  12. if ($nick != Glacier_Rat) || ($istok($mutedChannels,$chan,32)) || (!%awayreason) { halt }
  13. msg $chan 10[12»10 $+ $nick $+ 12«10] 14is now 10[12»10Back12«10] 14from:10 %awayreason [12»10GONE FOR12«10] $duration($calc($ctime - %awaytime))
  14. unset %away*
  15. }
  16. alias mutedChannels { return #bnc #babylon #irc #msl #xbnc #irchelp #msl.c }
  17. on $*:TEXT:/(glacier|glace|bryant)/Si:#:{
  18. if ( $chan == #xbnc ) { halt }
  19. if (%awayreason) && (!%awayhl. [ $+ [ $nick ] ]) {
  20. notice $nick 14is 10[12»10Away12«10]14:10 %awayreason 14Gone for: 10[12»10 $+ $duration($calc($ctime - %awaytime)) 14ago12«10]
  21. inc %awayhl. $+ $nick
  22. }
  23. }
Add Comment
Please, Sign In to add comment