mIRC Home    About    Download    Register    News    Help

Print Thread
Hide Topic on Join #265758 15/07/19 03:02 AM
Joined: Jan 2012
Posts: 44
J
Jaillynian Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2012
Posts: 44
I know there's an option to hide the topic event, but what if I only want to hide the topic event when I join a channel, only when someone changes the topic.

Or, i guess in a more 'clever' manner, hide topics until they're changed, either from the last time I joined a channel or someone edits it.

Re: Hide Topic on Join [Re: Jaillynian] #265759 15/07/19 10:50 AM
Joined: Feb 2003
Posts: 2,669
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,669
So, to start, there are two different "topic events" which mIRC looks for. There's the RAW 332 333 combo, and the TOPIC event itself. When you hide topic events, mIRC will ignore both of these.

When you join a channel, you receive the numeric 332 which contains the topic message, and then 333 which contains the topic setter and date.
When somebody sets a topic in your presence, you'll receive a TOPIC event.

You can monitor the debug window by typing /debug -p @debug to see these activities and what they look like.

It sounds like you only want to see the TOPIC events as they happen, but want to hide the 332/333 numerics, so the easiest solution is to have mIRC hide topic events and then use the ON TOPIC script event to display your own with the /echo command.

If you want to get more fancy, you can try keeping a topic history of your channels and then only display the topic if it's new and not a repeat of an earlier topic. You can do this with file /write and $read(), or via hashtable /hadd and $hget().


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Hide Topic on Join [Re: Raccoon] #265760 16/07/19 10:11 AM
Joined: Jan 2012
Posts: 44
J
Jaillynian Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2012
Posts: 44
I might be able to cobble something here, but sadly I'm not a scripter... at least not a good one.

The last time someone gave me a hash table script, I never figured out how to use it.

Last edited by Jaillynian; 16/07/19 10:25 AM.