Guest User

Untitled

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