https://en.wikichip.org/wiki/mirc/on_events/on_topic

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