1. I suggest that a couple new token identifiers could be added. Some of these have been suggested before.
$findwildtok(tokens,wildstring,N,C) = returns the position of the Nth matching wild token.
ex: $findwildtok(this is a string,*is,2,32) => 2
$repwildtok(tokens,wildstring,newstring,N,C) = replaces the Nth matching wild token with new string
ex: $repwildtok(this is a string,*is,was,2,32) => returns "this was a string"
$remwildtok(tokens,wildstring,N,C) = removes the Nth matching wild token
ex: $remwildtok(this is a string,*is,2,32) => returns "this a string"
$iswildtok(teststring,wildtokens,C) = returns true (or number of matches) if any of the wild tokens match the test string
ex: $iswildtok(www.mirc.com,www.* *.com,32) => returns $true (or 2)
** There should be case-sensitive versions of each
-----------------------------------------------------
2. (This would would most likely take a lot of work.) I think it would be useful in some situations to be able to modify the default message format that mIRC uses when displaying msg/action/join/part/kick/etc. We can currently /haltdef the default display and make our own display messages using /echo, etc. My suggestion is to add /moddef and $defmsg.
$defmsg would return the message that mIRC would have displayed if nothing were to alter it.
/moddef could have several switches and formats.
/moddef -n ( $+ $nick $+ )
- modifies the default nickname display format.
/moddef -t on/off
- show or hide the timestamp for that line
/moddef -c 7
- modify the default text color for the line
/moddef -m $replacecs($defmsg,mirc,mIRC,i,I)
- modify the default text
/moddef -rM
- revert the given M (n,t,c,m) to the default value
The events where the /moddef command is used would have to be prefixed with ^ (like when using /haltdef). After the changes are performed, the message would be displayed by mIRC as it normally would, except with the changes shown.
(These are suggestions, I'm not looking for work-arounds.)
-genius_at_work