mIRC Home    About    Download    Register    News    Help

Print Thread
Similar Channels Scan On Query #102039 04/11/04 02:39 AM
Joined: Jul 2004
Posts: 12
I
icybergie Offline OP
Pikka bird
OP Offline
Pikka bird
I
Joined: Jul 2004
Posts: 12
Hi, I'm not very good at scripting so i'll like to request someone to help me script something ^_^

I just had an idea. When a person gives me a private msg, it scans the channels he is on and echos any similar channels which i am on too in the query window. And it should happen only once unless i closes his chat window.

Can anyone help script this? Thank you ^_^

Re: Similar Channels Scan On Query #102040 04/11/04 06:34 AM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
when you close the query? Wouldn't it make more sense to do so when it opens?

Either way, a simple loop and $comchan oughta do the trick.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: Similar Channels Scan On Query #102041 04/11/04 02:32 PM
Joined: Jul 2004
Posts: 12
I
icybergie Offline OP
Pikka bird
OP Offline
Pikka bird
I
Joined: Jul 2004
Posts: 12
How do i use $comchan to show all common channels?

Thanks

Re: Similar Channels Scan On Query #102042 04/11/04 03:02 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788

On *:OPEN:?:{
var %i = 1, %c | while ($comchan($nick,%i)) { var %c = %c $v1 | inc %i }
echo 2 $nick - Common Channels: $iif(%c,%c,N/A)
}

There we go.

Eamonn.

Re: Similar Channels Scan On Query #102043 04/11/04 03:06 PM
Joined: Jul 2004
Posts: 12
I
icybergie Offline OP
Pikka bird
OP Offline
Pikka bird
I
Joined: Jul 2004
Posts: 12
Quote:

On *:OPEN:?:{
var %i = 1, %c | while ($comchan($nick,%i)) { var %c = %c $v1 | inc %i }
echo 2 $nick - Common Channels: $iif(%c,%c,N/A)
}

There we go.

Eamonn.


Hi, thanks for the code, but i have a problem. I tried using several nicks to msg myself, and all returns N/A even when both nicks are on some common channels

Re: Similar Channels Scan On Query #102044 07/11/04 08:08 AM
Joined: Dec 2002
Posts: 339
F
FunChatter Offline
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 339
Keep in mind that this can be verry floody some times...

Re: Similar Channels Scan On Query #102045 10/11/04 07:40 PM
Joined: Jul 2004
Posts: 12
I
icybergie Offline OP
Pikka bird
OP Offline
Pikka bird
I
Joined: Jul 2004
Posts: 12
why is it?