I wasn't saying to literally use %i, i was giving an example of now to change your existing code. The section where you have:

Code:
while (%x) {
  %kk = $ini(%command_file,%k,%x)
  .msg # .w $nick = ! $+ %kk => $readini(%command_file,n,%k,%kk)
  dec %x
}


... would change to build the list of commands into a single line, then displays the line afterwards:

Code:
var %text
while (%x) {
  %kk = $ini(%command_file,%k,%x)
  var %text %text ! $+ %kk => $readini(%command_file,n,%k,%kk) $(|)
  dec %x
}  
  .msg # .w $nick = %text