Firstabble i don't claim that the code(s) are optimized:)
So the problem...
I'm building custom list with nicks that i want to monitor.
I've created dialog for this and creates variables for users.
%monitor_list.nick nick!*ident@*
and i've check nicks that join on a channel
On *:join:blabla...
var %im = 1
while ($var(%monitor_list.*,%im)) {
if ($gettok($var(%monitor_list.*,%im).value,2,33) == $+(*,$remove($gettok($ial($nick,1).addr,1,64),~),@*)) {
echo 4 -t $chan * 7Monitored: $nick ( $+ $gettok($address($nick,5),2,33) $+ ) has joined $chan
cline 13 $chan $nick
halt
}
inc %im
}
So far, so good
now i want to check nicks already on channel whem i'm joining it for monitored nick, but it works only for myself. I know why, i'm asking how to bypass it.
and again On *:join:blabla...
if ($nick == $me) {
.set -u5 %onjoinwho ON
.who $chan
test
return
}
and test from aliases:
test {
var %i = 1
while ($nick($chan,%i,a)) {
echo -a $ord $nick($chan,%i,a)
inc %i
}
}
when call it from editbox in channel - it works, when call it from script it works only for my nick, obviously because i'm the nick who joins... any ideas?