Quantcast
WoWInterface - View Single Post - LUA CreateFrame, then RemoveFrame??
View Single Post
08-22-14, 10:06 AM   #10
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 194
Originally Posted by Duugu View Post
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).
  Reply With Quote