Advertisement
Aha2Y

Untitled

Aug 31st, 2011
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.84 KB | None | 0 0
  1. #START OF RELAY
  2. on !*:text:*:#:{ sendingtoIDs $+([,$network,:,$Chan,]) $+(<,$nick,>) $1- }
  3. on !*:part:#:{ sendingtoIDs $+([,$network,:,$Chan,]) $nick left }
  4. on !*:join:#:{ sendingtoIDs $+([,$network,:,$Chan,]) $nick joined }
  5. alias getsconid { var %i 0 | while %i < $scon(0) { inc %i | if $scon(%i).network = $1 { return %i } } }
  6. alias sendingtoIDs {
  7.   var %net ModnarTech SwiftIRC HardChats
  8.   var %chan #shirro #aha2y #makingnewbot
  9.   var %netid = $findtok(%net,$network,32)
  10.   if $chan = $gettok(%chan,%netid,32) {
  11.     var %net = $deltok(%net,%netid,32)
  12.     var %chan = $deltok(%chan,%netid,32)
  13.     var %text = $1-
  14.     var %u 0
  15.     while %u < $numtok(%net,32) {
  16.       inc %u
  17.       var %id =  $getsconid($gettok(%net,%u,32))
  18.       if (%id) {      
  19.         scon %id msg $gettok( %chan , %u ,32) %text
  20.         scon -r
  21.       }
  22.     }
  23.   }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement