mIRC Home    About    Download    Register    News    Help

Print Thread
#265758 15/07/19 03:02 AM
Joined: Jan 2012
Posts: 54
J
Babel fish
OP Offline
Babel fish
J
Joined: Jan 2012
Posts: 54
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.

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
Joined: Jan 2012
Posts: 54
J
Babel fish
OP Offline
Babel fish
J
Joined: Jan 2012
Posts: 54
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.

Link Copied to Clipboard