Guest User

Untitled

a guest
Oct 15th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.66 KB | None | 0 0
  1. alias aaway {
  2.   away Auto-Away after 10 minutes
  3.   set %und $ctime
  4. }
  5. alias back {
  6.   away
  7.   unset %und
  8. }
  9. on *:TEXT:*:*: {
  10.   if ($nick($chan,$me).idle > $calc(%time * 60)) && ($away = $false) {
  11.     aaway
  12.   }
  13.   if ($me isin $1-) && ($away = $true) {
  14.     notice $nick I regret to inform you, $nick $+ , but i am currently away. I have been gone for $duration($calc($ctime - %und)) $+ .
  15.     if (!$window(@Away)) window @Away {
  16.       echo 7 -t @Away  $+ $nick $+  in  $+ $chan $+  said: $1-
  17.     }
  18.   }
  19. }
  20. on *:START: {
  21.   timer 1 5 awaysetup
  22. }
  23. alias awaysetup {
  24.   set %time $?="Enter how many minutes you wish to be idle before Auto-Away is enabled"
  25. }
Add Comment
Please, Sign In to add comment