Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #START OF RELAY
- on !*:text:*:#:{ sendingtoIDs $+([,$network,:,$Chan,]) $+(<,$nick,>) $1- }
- on !*:part:#:{ sendingtoIDs $+([,$network,:,$Chan,]) $nick left }
- on !*:join:#:{ sendingtoIDs $+([,$network,:,$Chan,]) $nick joined }
- alias getsconid { var %i 0 | while %i < $scon(0) { inc %i | if $scon(%i).network = $1 { return %i } } }
- alias sendingtoIDs {
- var %net ModnarTech SwiftIRC HardChats
- var %chan #shirro #aha2y #makingnewbot
- var %netid = $findtok(%net,$network,32)
- if $chan = $gettok(%chan,%netid,32) {
- var %net = $deltok(%net,%netid,32)
- var %chan = $deltok(%chan,%netid,32)
- var %text = $1-
- var %u 0
- while %u < $numtok(%net,32) {
- inc %u
- var %id = $getsconid($gettok(%net,%u,32))
- if (%id) {
- scon %id msg $gettok( %chan , %u ,32) %text
- scon -r
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement