I am trying to make my script modify the default output of channel text messages so that I can colorize the timestamp and nick, and am having some difficulty with one specific part of it. I can halt the default message, and can modify the nick's colorization, as well as the timestamp, but the way I am currently doing it seems a bit excessive in terms of code bloat.
What I have done is disabled the timestamp in the mIRC messages dialog, copied the entire options section of mirc.ini into a new file, then enabled it again, and copied the entire options section to that same new file. I then compared the lines until I found which option was changed by the enable/disable timestamp check box. Then I created a timer that checks that option every millisecond from the time mirc is started until the time it is closed, so that if someone changes the option, it takes effect immediately.
Then I made the on text event and do
if (timestamp == 1) echo message with timestamp
else echo message without timestamp
This is all well and good except that I also have the $1- at the end set to be stripped of control codes if the user specifies in the same messages dialog by doing $strip($1-,mo)
What I want to know is: IS there any way to get the status of whether global timestamping is enabled or not without having to use the timer, like there is for whether stripbold is on? What is it?
I have looked at several scripts that modify the default output of channel messages via the ON ^*:TEXT:*:#: event, and all of them seem to just ignore the mirc messages dialog timestamp enable/disable setting. They all also seem to have their own timestamp option in their script's dialog.