Hi!
I'm having some problems using $sock like i want :-/
on *:TEXT:!pre*:#:{
if ($chan == #test) { var %group = test }
if ($1 == !pre) {
.remove prebot\pre-commands.txt
var %open = 0
:close-open
inc %open
if ($sock(pre.ums.*,%open) != $null) {
echo -s prebot\pre-commands.txt sockwrite -n $sock([ pre. [ $+ [ %group ] [ $+ .* ] ] ],%open)
goto close-open
}
}
}
But it just outputs "sockwrite -n", theres a socket open called "pre.test.test".
What am i doing wrong here?