Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. lias aaway {
  2. set %Awayreason $1-
  3. set %Awaytime $ctime
  4. set %Away 1
  5. set %lefttime $time
  6. away %awayreason
  7. amsg 12I Am Away12: %Awayreason 12 $+ $chr(149) I12 Left12 At: $asctime(HH12:01nn12:01ss12)
  8. }
  9.  
  10. alias bback {
  11. away
  12. amsg 12I Am Back12: %Awayreason 12 $+ $chr(149) I12 Was Gone12 For: $duration($calc($ctime - %Awaytime)) $+ 12
  13. unset %Awayreason
  14. unset %Awaytime
  15. unset %lefttime
  16. unset %Away
  17. unset %OneTR*
  18. }
  19.  
  20. on *:text:*:#: {
  21. if (%Away == 1) && (%OneTR [ $+ [ $nick ] ] != On) && ((Cal isin $1-) || (Brap isin $1-)) {
  22. set %OneTR [ $+ [ $nick ] ] On
  23. notice $nick 12Away: %Awayreason 12 $+ $chr(149) I12 Have Been Away12 For: $duration($calc($ctime - %Awaytime)) $+ 12.
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement