The parameters are nameless, like all other languages with subroutines.
Unlike other languages (where you have to match function names and argument lists), Lua doesn't care what the function's arguments looks like, it could have one argument, or five. Mushclient will always pass three, if you have only one argument in your function definition, then that will become the name, and the rest of the passed arguments will be discarded. If you have five, then your first three will be the name, the line, and the wildcards, and then your fourth and fifth would be nil.
So, if you just wanted the line, you'd need two parameters, one for the name, the second for the line. |