mIRC Home    About    Download    Register    News    Help

Print Thread
#129995 11/09/05 11:46 PM
Joined: Sep 2005
Posts: 2
F
Bowl of petunias
OP Offline
Bowl of petunias
F
Joined: Sep 2005
Posts: 2
i can do this from
Options --> Connect .--> Options --> Perform --> Perform Commands --> /list

but what i really want is the list of channels saved in a file different than "channels.txt", e.g. "name of network".txt
because if i connect to multiple servers at the same time, one "channels.txt" overwrites the other.


thank u

#129996 12/09/05 01:44 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Can't you just press Alt+L to open mIRC Channels List dialog from there you can change the file it's saved as?


Here's something that may do the trick.

Code:
Raw 321:*: {
  write -c $+(channels,$upper($network),.txt) $server $asctime
}

Raw 322:*: {
  write $+(channels,$upper($network),.txt) $2-
}


If your on a network it writes to file channelsDALNET.txt for example. If you aren't on anetwork it writes it to channels.txt simply removing $network from the equation. smile

-Andy

#129997 12/09/05 01:44 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
mIRC does this by default.

The channel lists are stored in the /channels directory of your mirc client.

#129998 12/09/05 03:27 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
The following code will write to <name of network>.txt in your channels\ directory in the main mIRC directory.

Code:
raw 321:*: .fopen -no channels_ $+ $network $+(channels\,$mkfn($network),.txt)
raw 322:*:{
  if ($fopen(channels_ $+ $network)) .fwrite -n channels_ $+ $network $2-
}
raw 323:*:{
  if ($fopen(channels_ $+ $network)) .fclose channels_ $+ $network
}

#129999 12/09/05 08:22 PM
Joined: Sep 2005
Posts: 2
F
Bowl of petunias
OP Offline
Bowl of petunias
F
Joined: Sep 2005
Posts: 2
thank you

this is what I was looking for

bye smile


Link Copied to Clipboard