View Single Post
04-16-11, 08:29 PM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
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)
  Reply With Quote