alias netlinkecho {
set %echo_to_net Back2Root
;; network name von dem geecho't wird ... //echo -a $network
set %echo_from_net EFNet
;; switch to echo network
var %connections $scid(0)
while (%connections > 0) {
if ($scon([ %connections ]).network == %echo_to_net) {
scid $scon([ %connections ])
}
dec %connections
}
}
if ($scon([ %connections ]).network == %echo_to_net) {
scid $scon([ %connections ])
msg #ssc.pre $1-
;; switch back to pre network
var %connections $scid(0)
while (%connections > 0) {
if ($scon([ %connections ]).network == %echo_from_net) {
scid $scon([ %connections ])
}
dec %connections
}
on *:TEXT:*:#test0rz01ox: {
netlinkecho $1-
}