Fix bug to restart listening. Pushing to 1.0 release

Scott Yeskie [05-16-14 - 21:29]
Fix bug to restart listening. Pushing to 1.0 release
Filename
AutoInvite.lua
diff --git a/AutoInvite.lua b/AutoInvite.lua
index bbfc0c5..e4f85fc 100644
--- a/AutoInvite.lua
+++ b/AutoInvite.lua
@@ -55,6 +55,7 @@ end
 AutoInvite.disable = function()
 	AutoInvite.watch = ""
 	EVENT_MANAGER:UnregisterForEvent(AutoInvite.AddonId, EVENT_CHAT_MESSAGE_CHANNEL)
+	AutoInvite.listening = false
 end

 AutoInvite.enable = function(str)