Originally Posted by Duugu
If the user adds no parameters to the slash command the Msg variable should be Nil. So, this should work:
[e] As I read Choonsters reply I'm actually unsure if the value will be Nil or an empty string. *shrug*
|
Looking at the UI code, the first argument of the slash command function should always be a string:
https://github.com/tekkub/wow-ui-sou...rame.lua#L4315
Notice that the msg variable passed as the first argument is always assigned to a string value (either a literal or the return value of strsub/strtrim).