mIRC Homepage
Posted By: Bullseye notify popup - 11/03/06 05:37 PM
Hi,

I have a notify popup that tells in a popup when a person in my notiylist connects to a server and joins a channel.
It tells me what server they are connecting but not what channel they join.
How do I let it show the channels they join even if I'm not on that channel.
I have a alias that shows the common chans.
But is there a piece of code that loops through to the channellist and then shows what channels they are on ?
Posted By: sparta Re: notify popup - 11/03/06 05:52 PM
The only way i can think of is to /whois the nick u want to get the info from, then gather it true raw, but when someone connect it's no way to tell what channel he/she will join, the notify is only there to let you know your friend connecting to the server, and that you are able to /msg him or her. smile
Posted By: MikeChat Re: notify popup - 11/03/06 05:54 PM
as part of your notify script you could do a whois on the nick and capture the raw 319 (on my server its 319 anyway)

example
raw 319:*:{ window @notify | echo @notify $2- }

you have now a "popup" of somesort and this could be added to that

to block the rest of the whois look at halting raws 307,311,312,317 and using 318 to reset whatever you use to block the other raws to allow normal "whois" replies to get through (such as enabling and disabling a group)
Posted By: Bullseye Re: notify popup - 11/03/06 06:46 PM
thank you both
Posted By: genius_at_work Re: notify popup - 12/03/06 01:39 AM
The notify function tells you when someone connects to the server. When they have just connected to the server, they aren't on any channels. If you want to perform a whois on them, you should add it in a timer. Something like this perhaps:

Code:
on *:NOTIFY:{
if ($nick == [color:red]BOB[/color]) .timer 1 5 whois $nick
}

(untested)

Then you can block the whois raws if you want. There are numerous examples of blocking raws on this site. Just use the search feature.

-genius_at_work
Posted By: RusselB Re: notify popup - 12/03/06 06:14 PM
If you want the whois to go automatically, you can specify the + when adding a nick to your notify list

ie: /notify +nick
Quote:
If you prefix a nickname with a + sign then mIRC will do a /whois on the nickname as part of the notify. However, if you do this on too many nicknames then the IRC server might disconnect you for flooding, so it's best to use it only if you really need to.
© mIRC Discussion Forums