mIRC Home    About    Download    Register    News    Help

Print Thread
I
icybergie
icybergie
I
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 ^_^

Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
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.

I
icybergie
icybergie
I
How do i use $comchan to show all common channels?

Thanks

Joined: Dec 2002
Posts: 787
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 787

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.

I
icybergie
icybergie
I
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

Joined: Dec 2002
Posts: 334
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 334
Keep in mind that this can be verry floody some times...

I
icybergie
icybergie
I
why is it?


Link Copied to Clipboard