I'm working on a script, and in a part of it, I wanna tell mIRC to connect to a server/network. Lets asume that the server is irc.ircchat.net
Asuming I'm already connected to several servers at the same time, and don't want to close any of the connections, I would like to do the following:
1) If I'm not connected to irc.ircchat.net, connect to this server while opening a new window (I belive that /server -m irc.irccaht.net will do the job)
2) if I'm already connected to irc.ircchat.net, mIRC will write, you are already connected to that server
The problem I have is that I can't find out if I'm connected to a server or not.
Also, if I'm already connected, I would like to join some channels (like #chat, and #help). The problem I have is that in a script, I can't tell it in which network to do the join (asuming I'm connected to several networks).
If I wasn't connected to irc.ircchat.net then I could use:
on 1:connect: {
if ($server == irc.ircchat.net) {
join #chat
join #help
}
}
But since I'm already connected to that server, I can't use "On 1:connect"
Also, How can I tell mIRC to close a status window??
Please help.