View Single Post
04/07/14, 03:22 PM   #1
skyraker
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 154
What's wrong with this?

Lua Code:
  1. function ABT.initBookTrack(code, addOnName)
  2.     if (addOnName == "BookTracker") then
  3.         SLASH_COMMANDS["/mybooks"] = ABT.showBookWindow
  4.     end
  5. end
  6.  
  7. EVENT_MANAGER:RegisterForEvent("bookTrack", EVENT_ADD_ON_LOADED , ABT.initBookTrack)

The slash command is not being added. Yes, ABT.initBookTrack is defined. Yes, BookTracker is the title of the addon in my txt file.
  Reply With Quote