mIRC Home    About    Download    Register    News    Help

Print Thread
#64243 16/12/03 11:10 PM
Joined: Dec 2003
Posts: 3
V
voogru Offline OP
Self-satisified door
OP Offline
Self-satisified door
V
Joined: Dec 2003
Posts: 3
Hello,

Just wanted to know, if there is a way I can close all the open channels, if im connected or not.

Just like /partall, but works when disconnected from a server.

Thanks.

#64244 16/12/03 11:14 PM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
but /partall will do that if you are connected or not. /join 0 would only work if you are connected as it's a server command and not mirc

#64245 16/12/03 11:17 PM
Joined: Dec 2003
Posts: 3
V
voogru Offline OP
Self-satisified door
OP Offline
Self-satisified door
V
Joined: Dec 2003
Posts: 3
Hmm, Okay I said this wrong.


Basically, I connect to different networks, which have different channels, when I disconnect from one network, I want to close the channels that I was on from that network when connecting to the other network.

Now, In the perform I put a /partall, but normally when I connect to another network, it says "You are not on that channel" and doesnt close the channel.


#64246 16/12/03 11:57 PM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
well i guess you could have:

on *:disconnect:partall

that would close all channels when you disconnect from a server, but there is also an option in mirc options that will allow you to close channel windows when a new connection attempt is made, this might be checked, alt O > IRC > keep channels open.

#64247 17/12/03 12:09 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
You'd have to keep track of the network a given $cid is conected to, and check if that network has changed On LOGON before issuing your partall and updating that variable with the new $network.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#64248 17/12/03 12:10 AM
Joined: Dec 2003
Posts: 3
V
voogru Offline OP
Self-satisified door
OP Offline
Self-satisified door
V
Joined: Dec 2003
Posts: 3
Thanks!

#64249 17/12/03 12:04 PM
Joined: Mar 2003
Posts: 58
A
Babel fish
Offline
Babel fish
A
Joined: Mar 2003
Posts: 58
or use the /window alias with parameters


Link Copied to Clipboard