From WikiChip
$mklogfn identifier - mIRC
< mirc‎ | identifiers
Revision as of 15:55, 5 January 2018 by Ouims (talk | contribs) (Created page with "{{mirc title|$mklogfn identifier}}'''$mklogfn''' returns a the filename that would be used for such a nickname as a log file, it ensures a valid filename by doing the same und...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$mklogfn returns a the filename that would be used for such a nickname as a log file, it ensures a valid filename by doing the same underscores replacement as $mkfn, and then applying your log setting (adding a network and .log etc)

Synopsis[edit]

$mklogfn(text)

Parameters[edit]

  • text - Text to be made a valid log filename respecting your mIRC log settings

Properties[edit]

None

Example[edit]

//var %i 33 | var %f | while (%i isnum 33-126) { var %f %f $+ $chr(%i) | inc %i } | echo -a orig: %f | echo -a mklogfn: $mklogfn(%f)

Note: While this ensures a string is a valid filename, it does not ensure 2 different strings wouldn't get assigned the same filename, with both having different characters replaced with the same underscore.

Compatibility[edit]

Added: mIRC v5.7
Added on: 02 Feb 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also[edit]