Ah yes, i was unaware of the -i flag.
on ^*:TEXT:*:*:{
var %pad_max = 13
if ($len($nick) < %pad_max) {
var %pad_len = $calc(%pad_max - $len($nick))
echo -i $+ $calc($len($strip($timestamp $nick)) + 3 + %pad_len) $target $timestamp $str($chr(160),%pad_len) $+ < $+ $nick $+ > $1-
}
else {
var %pad_len = $calc($len($nick) - %pad_max)
echo -i $+ $calc($len($strip($timestamp $nick)) + 3 - %pad_len) $target $timestamp < $+ $nick $+ > $1-
}
halt
}
This is about the best i could come up with in a short time and without the use of a dll, however there are several things to take note of.
- Tthe use of $chr(160) to pad will not work in all cases, since not all fonts return a white space for chr 160.
- Due to the undocumented indent limit (25), if the length of timestamp+nick+4 [
$calc($len($strip($timestamp $nick)) + 3) ] is more than timestamp+
%pad_max+4 and/or exceeds the indent limit the nick will pertrude past the indent point. Apologies if i did not explain this point very well.
- Due to a problem with the way indenting mishandles text with control charactors, you may experience times when it seems to indent incorrectly. More specifically any occurances of <space><ctrlchr><space> seem to be what causes it to function incorrectly.
- A Fixed width font must be used.
- %pad_max can be increased or decreased to change the width of the nickname "column"