mIRC Homepage
Posted By: icybergie Similar Channels Scan On Query - 04/11/04 02:39 AM
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 ^_^
Posted By: LocutusofBorg Re: Similar Channels Scan On Query - 04/11/04 06:34 AM
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.
Posted By: icybergie Re: Similar Channels Scan On Query - 04/11/04 02:32 PM
How do i use $comchan to show all common channels?

Thanks
Posted By: Coolkill Re: Similar Channels Scan On Query - 04/11/04 03:02 PM

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.
Posted By: icybergie Re: Similar Channels Scan On Query - 04/11/04 03:06 PM
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
Posted By: FunChatter Re: Similar Channels Scan On Query - 07/11/04 08:08 AM
Keep in mind that this can be verry floody some times...
Posted By: icybergie Re: Similar Channels Scan On Query - 10/11/04 07:40 PM
why is it?
© mIRC Discussion Forums