I'm new to IRC (started on Friday) and I got confused by the fact that it seems a variable is not always accessable.
Here's what I wrote:
---------- script start ----------
- in remote variables (remote.ini):
%tc = #tommys-channel
- in remote script (script.ini)
on 1:connect: {
echo channel name is: %tc
if ($network == TomNet) { join #Beginner,%tc
topic #tommys-channel today: one topic for free!
mode #tommys-channel +n-t+l 10
}
}
---------- script end ----------
the echo command is printed out correct (channel name is: = #tommys-channel). But it is not working in the join command anymore (%tc No such channel).
Any idea what the problem can be?
Client: mIRC 6.16 (not registered yet) under M$ W2k, no add-ons or whatever.
I have a irc server (BewareIRC in W2k) running so I can tryout the irc features without working on a productive environment.
And with that server I tried the above scirpt.
cheers killemall
<edit>the echo command is also working when placed in the if(...) {} part.</edit>