mIRC Home    About    Download    Register    News    Help

Print Thread
On join, list channels #129995
11/09/05 11:46 PM
11/09/05 11:46 PM
Joined: Sep 2005
Posts: 2
F
fgonzaro7 Offline OP
Bowl of petunias
fgonzaro7  Offline OP
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

Re: On join, list channels #129996
12/09/05 01:44 AM
12/09/05 01:44 AM
Joined: Dec 2002
Posts: 3,547
Kent, England
S
SladeKraven Offline
Hoopy frood
SladeKraven  Offline
Hoopy frood
S

Joined: Dec 2002
Posts: 3,547
Kent, England
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

Re: On join, list channels #129997
12/09/05 01:44 AM
12/09/05 01:44 AM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
schaefer31  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.

Re: On join, list channels #129998
12/09/05 03:27 PM
12/09/05 03:27 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
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
}

Re: On join, list channels #129999
12/09/05 08:22 PM
12/09/05 08:22 PM
Joined: Sep 2005
Posts: 2
F
fgonzaro7 Offline OP
Bowl of petunias
fgonzaro7  Offline OP
Bowl of petunias
F

Joined: Sep 2005
Posts: 2
thank you

this is what I was looking for

bye smile