Advertisement
user_fasdkfsdkmfds

Untitled

Jul 27th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. on $*:PARSELINE:in:/^((@\S+ )?)(\x3A[^!@ ]+![^@ ]+@\S+) WHISPER (\S+) (\x3A.*)/i:{
  2. var %Count = $regml(0)
  3. var %Tags = $regml($calc(%Count -3))
  4. var %User = $regml($calc(%Count -2))
  5. var %Target = $regml($calc(%Count -1))
  6. var %Msg = $regml(%Count)
  7. if ($regex($server, /^(tmi|irc)\.(chat\.)?twitch\.tv$/i) && $me == %target) {
  8. .parseline -it
  9. .parseline -itqp %Tags %User PRIVMSG $me %Msg
  10. }
  11. }
  12.  
  13. ;; Converts outbound private queries into twitch whispers
  14. on $*:PARSELINE:out:/^PRIVMSG ([^#]\S*) \x3A(.+)$/i:{
  15. var %Target = $regml(1)
  16. var %Msg = $regml(2)
  17. if ($regex($server, /^(tmi|irc)\.(chat\.)?twitch\.tv$/i)) {
  18. .parseline -otn PRIVMSG jtv :/w $lower(%Target) %Msg
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement