Guest User

Untitled

a guest
Dec 7th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.93 KB | None | 0 0
  1. on $*:TEXT:/^(brb|gone|afk)/Si:#:{
  2.   if (!$readini(idle.ini, $nick, time)) {
  3.     set %away $nick
  4.     writeini idle.ini $nick time $ctime
  5.     msg $chan Alright, ill start my stop watch..
  6.   }
  7.   elseif ($readini(idle.ini, $nick, time) >= 1) {
  8.     msg $chan $nick $+ ,you are already marked as brb, Please say "back" when you return!
  9.   }
  10. }
  11.  
  12. on *:text:back:#:{
  13.   if ($readini(idle.ini, $nick, time) >= 1) {
  14.     unset %away
  15.     msg $chan Welcome back $nick you were gone for $duration($calc($ctime -$readini(idle.ini, $nick, time) )) $+ , what took you so long?
  16.     remini idle.ini $nick
  17.   }
  18. }
  19. on *:TEXT:!ClearAway *:#:{
  20.   if (!$2) { msg $chan Please specify a nick!
  21.   }
  22.   else {
  23.     unset %away
  24.     remini idle.ini $2
  25.     msg $chan $2 $+ 's brb time has been cleared.
  26.  }
  27. }
  28. On *:TEXT:*:#: {
  29.  if (%away isin $1-) {
  30.    msg $chan Sorry $nick but there marked as brb at this time, they will say back when they return.
  31.  }
  32. }
Add Comment
Please, Sign In to add comment