string.trim() does not exist in the Lua core, however, the WoW API supplies strtrim() to do this and the default character string is " \t\r\n" if left undefined.
I still prefer my string splitting approach plus the added features the OP requested. Also to note, DoEmote() requires an emote token to run, you need to send it through the EMOTE channel with SendChatMessage() for custom emotes.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
|
|