This is relevant segment of the code I am using. There are no errors, and the message prints to the chat window. The slash commands just don't work (I get the type /help message).
Code:
function npcIgnore_onLoad()
SlashCmdList["NPCIGNORE"] = npcIgnore_ChatCommand;
SLASH_NPCIGNORE1 = "/npcignore";
SLASH_NPCIGNORE2 = "/npci";
ChatFrame_AddMessageEventFilter("CHAT_MSG_MONSTER_SAY", npcChatFilter);
ChatFrame_AddMessageEventFilter("CHAT_MSG_MONSTER_WHISPER", npcChatFilter);
ChatFrame_AddMessageEventFilter("CHAT_MSG_MONSTER_EMOTE", npcChatFilter);
DEFAULT_CHAT_FRAME:AddMessage("NPCIgnore is loaded.");
end
Yes, the function does exist.