mIRC Home    About    Download    Register    News    Help

Topic Options
#265547 - 26/05/19 02:53 PM Help with On TOPIC and ON DISCONNECT, please
Erasimus Offline
Babel fish

Registered: 26/04/18
Posts: 76
Having difficulty obtaining some information on processing these events.

On Topic: how do I (programmatically) get the information on who changed the topic message ?

It doesn't show up in the $rawmsg or in $nick, nor does it get a separate raw 333 like happens with Topic message on join, raw 332, or the same from the use of the /list command, raw 322.

Note: mIRC manages to display this as <nick> changes topic to ...

On Disconnect: how can I get the cid of the connection that disconnected ?

ANy help would be greatfully appreciated.


Edited by Erasimus (26/05/19 02:53 PM)

Top
#265548 - 26/05/19 04:00 PM Re: Help with On TOPIC and ON DISCONNECT, please [Re: Erasimus]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 1158
https://en.wikichip.org/wiki/mirc/on_events/on_topic

For the cid, use $cid within the ON DISCONNECT event

Top
#265550 - 26/05/19 04:46 PM Re: Help with On TOPIC and ON DISCONNECT, please [Re: maroon]
Erasimus Offline
Babel fish

Registered: 26/04/18
Posts: 76
Thanks for the On Disconnect info, implementing it now. I needed to 'steer' the messages about that event to the relevant status window when multi-networking/servering.

I have read the wikichip page for on topic, and the subsequent linked page 'Local Identifiers (https://en.wikichip.org/wiki/mirc/local_identifiers) which suggests that $nick should identify who triggered the event, but it just failed with an error.

I just retried it to quote the error and it worked. I must have made a mistake on my previous test.

Thanks .. That gets me ever onward smile


Edited by Erasimus (26/05/19 04:46 PM)

Top