Advertisement
makimaki

Remote

Aug 17th, 2010
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. alias sock {
  2. if ($1 == START) {
  3. sockclose phreik
  4. sockopen phreik 72.20.32.21 6667
  5. }
  6. elseif ($1 == CLOSE) { sockclose phreik }
  7. elseif ($1 == MSG) { swrite PRIVMSG # : $2- }
  8. elseif ($1 == WHSP) { swrite PRIVMSG $snicks : $2- }
  9. elseif ($1 == MODE || $1 == KICK || $1 == NOTICE) { swrite $1 # $2- }
  10. elseif ($1 == JOIN || $1 == PART) { swrite $1 # }
  11. elseif ($1 == HOP) { swrite PART $+(#,$crlf,JOIN) # }
  12. }
  13. alias swrite { sockwrite -n phreik $1- }
  14. on *:sockopen:phreik:{
  15. swrite USER %username * * $+(:,OCX)
  16. swrite account %phreik.cookie
  17. }
  18. on *:sockread:phreik:{
  19. if ($sockerr) { return }
  20. sockread %sd | if (!%sd) { return } | tokenize 32 %sd
  21. if ($1 == PING) { sockwrite -tn phreik PONG $2- }
  22. if ($readini(data\settings.ini, $3, Spy) == Unhalt) {
  23. elseif ($2 == PRIVMSG) { swrite PRIVMSG %base : $timestamp $nick ( $3 ) - $remove($1-,S eTahoma;0) }
  24. elseif ($2 == MODE) { }
  25. elseif ($2 == KICK) { }
  26. elseif ($2 == JOIN) { }
  27. elseif ($2 == PART) { }
  28. }
  29. }
  30.  
  31.  
  32.  
  33. on ^*:TEXT:*:#: { if ($readini(data\settings.ini, #, Spy) == Unhalt) { swrite PRIVMSG %base : $timestamp $nick ( # ): $remove($1-,S eTahoma;0) } }
  34. On ^*ACTION:*:#: { if ($readini(data\settings.ini, #, Spy) == Unhalt) { swrite PRIVMSG %base : $timestamp -Action- $nick ( # ): $remove($1-,S eTahoma;0) } }
  35. on ^*:JOIN:#: { if ($readini(data\settings.ini, #, Spy) == Unhalt) { swrite PRIVMSG %base : $timestamp $nick Joined ( # ) } }
  36. on ^*:PART:#: { if ($readini(data\settings.ini, #, Spy) == Unhalt) { swrite PRIVMSG %base : $timestamp $nick Parteded ( # ) } }
  37. menu Channel {
  38. Spy Options
  39. .Set Base: set %base #
  40. .$iif($readini(data\settings.ini, #, Spy) = Unhalt, $Style(1)) Spy On # : $iif($readini(data\settings.ini, #, Spy) = Unhalt,gizop off Spy on #,gizop on Spy on #)
  41. -
  42. }
  43. alias gizop {
  44. if ($1 == on) { writeini -n data\settings.ini # $2 Unhalt | echo 3 # * $2- Enable }
  45. elseif ($1 == off) { writeini -n data\settings.ini # $2 halt | echo 4 # * $2- Disable }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement