View Single Post
04-19-11, 03:51 AM   #20
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by Aurorablade View Post
there was an error i found and fixed
line 38 should be
tokencheck,tokenid=_G["EMOTE"..(tokenid+1).."_TOKEN"],tokenid+1;
Corrected missing second concatenation operator in my post above.
Thanks for pointing it out.

Originally Posted by Aurorablade View Post
and its not stripping the trailing * at the moment.
Line 10 should handle a leading and/or trailing asterisk with a check for a zero-length string. A leading asterisk should cause the first element to be zero-length and a trailing asterisk would have it as the last element. In either case, the entire string is skipped and the code moves on to the next piece. Unless there's a glitch in the API, strsplit() shouldn't return string pieces containing the delimiter.





Edit: Maybe I should run my code through the game next time before posting, lol.
The following has been fixed in my above code:
-Removed the ";" at the end of the parameter list.
-Fixed more of line 38, missing end bracket for index.
-Replaced strsplit() with alternate code. (Function returns didn't match documentation.)
__________________
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)

Last edited by SDPhantom : 04-19-11 at 04:43 AM.
  Reply With Quote