Advertisement
Guest User

Untitled

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