Hi all,
I have this hashtable called 'chans'
The hashtable contains channelnames and ops
example:
item = channel1 data = nick1 nick2 nick3 nick4
item = channel2 data = nick1 nick2
Now i wanna find the info that a channel holds when someone types a command in the channel. I tried with the following:
on *:text:!tellme *:#: {
var %i = 1
var %chan = $2
while ($hfind(chans, * $+ %chan $+ *, %i, w).item) {
msg $chan => item= $hget(chans,%i).item data= $hget(chans,%i).data
inc %i
}
}
But it doesn't work... Whats wrong? And how do I get the proper info?