Increment API version

Wobin [05-23-14 - 08:43]
Increment API version
Filename
GuildChat.lua
GuildChat.txt
diff --git a/GuildChat.lua b/GuildChat.lua
index d770f9f..d0c01a4 100644
--- a/GuildChat.lua
+++ b/GuildChat.lua
@@ -52,8 +52,8 @@ function GuildChat:GetName(channelId, fromName, text)
 	return formattedName or nameLink
 end

-function GuildChat:Register()
-	LC:registerName(function(...) return GuildChat:GetName(...) end)
+function GuildChat:Register()
+	LC:registerName(function(...) return GuildChat:GetName(...) end)
 end

 function GuildChat:Loaded(...)
@@ -65,7 +65,8 @@ function GuildChat:Loaded(...)
 			GuildChat.settings.characterName = not GuildChat.settings.characterName
 			d("GuildChat toggled to " .. (GuildChat.settings.characterName and "show character names" or "show account names"))
 		end
-	zo_callLater(GuildChat.Register, 1000)
+	zo_callLater(GuildChat.Register, 5000)
 end

-EVENT_MANAGER:RegisterForEvent("GuildChatLoaded", EVENT_ADD_ON_LOADED, function(...) GuildChat:Loaded(...) end)
\ No newline at end of file
+EVENT_MANAGER:RegisterForEvent("GuildChatLoaded", EVENT_ADD_ON_LOADED, function(...) GuildChat:Loaded(...) end)
+EVENT_MANAGER:RegisterForEvent("GuildChatReloaded", EVENT_PLAYER_ACTIVATED, function(...) zo_callLater(GuildChat.Register, 3000) end)
\ No newline at end of file
diff --git a/GuildChat.txt b/GuildChat.txt
index c9eae63..833e21d 100644
--- a/GuildChat.txt
+++ b/GuildChat.txt
@@ -1,7 +1,7 @@
 ## Title: GuildChat
 ## Author: Wobin
 ## Version: @project-version@
-## APIVersion: 100003
+## APIVersion: 100004
 ## SavedVariables: GuildChat_Settings

 Libs/LibStub/LibStub.lua