mIRC Home    About    Download    Register    News    Help

Print Thread
Help with On TOPIC and ON DISCONNECT, please #265547 26/05/19 01:53 PM
Joined: Apr 2018
Posts: 83
E
Erasimus Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Apr 2018
Posts: 83
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.

Last edited by Erasimus; 26/05/19 01:53 PM.
Re: Help with On TOPIC and ON DISCONNECT, please [Re: Erasimus] #265548 26/05/19 03:00 PM
Joined: Jan 2004
Posts: 1,214
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,214
https://en.wikichip.org/wiki/mirc/on_events/on_topic

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

Re: Help with On TOPIC and ON DISCONNECT, please [Re: maroon] #265550 26/05/19 03:46 PM
Joined: Apr 2018
Posts: 83
E
Erasimus Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Apr 2018
Posts: 83
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

Last edited by Erasimus; 26/05/19 03:46 PM.