For all 6 lines of new code, the identifier
$min($0,$modespl,3)
should change to be
$min($0,$modespl)

Fixes for aliases.ini accessed in the Alt+D editor:

now:
Code
/op /mode # +ooo $$1 $2 $3
/dop /mode # -ooo $$1 $2 $3

new:
Code
/op  /var %count = $min($0,$modespl) | /mode # + $+ $str(o,%count) $gettok($$1-,1- %count,32)
/dop /var %count = $min($0,$modespl) | /mode # - $+ $str(o,%count) $gettok($$1-,1- %count,32)


Fixes for popups.ini accessed in the Alt+P editor where you select 'Nick List' from the editor's 'view' menu:

now:
Code
.Op:/mode # +ooo $$1 $2 $3
.Deop:/mode # -ooo $$1 $2 $3
.Voice:/mode # +vvv $$1 $2 $3
.Devoice:/mode # -vvv $$1 $2 $3

new:
Code
.Op:/var      %count = $min($0,$modespl) | /mode # + $+ $str(o,%count) $gettok($$1-,1- %count,32)
.Deop:/var    %count = $min($0,$modespl) | /mode # - $+ $str(o,%count) $gettok($$1-,1- %count,32)
.Voice:/var   %count = $min($0,$modespl) | /mode # + $+ $str(v,%count) $gettok($$1-,1- %count,32)
.Devoice:/var %count = $min($0,$modespl) | /mode # - $+ $str(v,%count) $gettok($$1-,1- %count,32)