mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2004
Posts: 12
I
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 ^_^

Joined: Mar 2003
Posts: 1,271
L
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
Joined: Jul 2004
Posts: 12
I
Pikka bird
OP Offline
Pikka bird
I
Joined: Jul 2004
Posts: 12
How do i use $comchan to show all common channels?

Thanks

Joined: Dec 2002
Posts: 788
C
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.

Joined: Jul 2004
Posts: 12
I
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

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

Joined: Jul 2004
Posts: 12
I
Pikka bird
OP Offline
Pikka bird
I
Joined: Jul 2004
Posts: 12
why is it?


Link Copied to Clipboard