Hey... I need some help with making a script.
Basically, what I need is an alias that i pass 3 arguments to: server name (for example: 'EFnet', 'IRCnet'), a channel name and a nick in that channel. What basically, it should return 'on' if the nick is in that chan on that server, and 'off' if not.
so var %available = $<alias>(EFnet,#channel,someone)
would return 'on' to %available if nick is there, and 'off' if not there.
Now, I've tried making a simple script myself, but I ran into some problems.
scon -at1 if $!network == %net && %nick !ison %chan { writeini <some file> server chan nick off }
scon -at1 if $!network == %net && %nick ison %chan { writeini <some file> server chan nick on }
Now, I used writeini, because I found out that i cannot use "return" in those scon { } brackets. That was weird thing no. 1. The second weird thing is that sometimes it will say in the status window "* /if: insufficient parameters" which also sucks.
So I'm asking the help of the pros in making a whole new working, better alias
Thanks in advance.
doodle
edit: i'll just clarify again. This is not just to check if the user is on the server, it's to check if it's on the channel on that server. Thansk again