Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-03-12, 03:20 PM   #1
nossy
A Defias Bandit
Join Date: Apr 2011
Posts: 3
Slash Command changes?

Not sure what I'm missing here...going through and updating/testing my small addons for MoP and having issues with slash commands on two of my addons but not on the other. With the addons that are not working, if I type /slashcommand the client does not allow me to press enter. Has something changed with the way slash commands are used/initialized in MoP?

This addon works:

Code:
AMFG_LazyWTF_Emote_List = {} -- initialize array
SLASH_AMFGLAZYWTF1 = '/wtf';

function SlashCmdList.AMFGLAZYWTF(msg, editbox)
	//Code is here, omitted for simplicity

end
This addon doesn't:

Code:
SLASH_AMFGLAZYRC1 = '/rc';
function SlashCmdList.AMFGLAZYRC(msg, editbox)
	//Vode is here, omitted for simplicity
end
Interestingly enough, if I remove the first line from the first addon (the array initialization) that slash command also ceases to work. I'm assuming this is one of those cases of me doing something incorrect that just happens to have worked on Live for the last two xpacs and the latest expansion breaking it.
 
 

WoWInterface » Site Forums » Archived Beta Forums » MoP Beta archived threads » Slash Command changes?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off