Added GiT versioning

simenon [07-13-14 - 08:31]
Added GiT versioning
Removed restriction on guild and officer channels only.
Filename
GuildChat.lua
GuildChat.txt
diff --git a/GuildChat.lua b/GuildChat.lua
index 47c59ff..77886c4 100644
--- a/GuildChat.lua
+++ b/GuildChat.lua
@@ -27,7 +27,7 @@ local Addon =
     Name = "GuildChat",
     NameSpaced = "Guild Chat",
     Author = "CrazyDutchGuy & Wobin",
-    Version = "4.3",
+    Version = "@project-version@",
     Defaults = {
 		characterName = characterNameMenuOptions[1],
 		guildRank = false,
@@ -107,8 +107,7 @@ function GuildChat:GetCharacterNameLink(name)
 end

 function GuildChat:GetName(channelId, fromName, text)
-	local channelInfo = ChannelInfo[channelId]
-	if channelInfo.format ~= 1723 then return fromName end
+	if not LGI:GetGuildMemberByMemberName(fromName) then return fromName end -- For whispers and tells from people not in one of your guilds

 	local formattedName = ""

@@ -190,8 +189,6 @@ end

 function GuildChat:EVENT_ADD_ON_LOADED(eventId, addonName)
 	if addonName ~= Addon.Name then return end
-
-

 	GuildChat.settings = ZO_SavedVars:NewAccountWide('GuildChat_Settings', 4, nil, Addon.Defaults)

diff --git a/GuildChat.txt b/GuildChat.txt
index 8ee114d..543d49f 100644
--- a/GuildChat.txt
+++ b/GuildChat.txt
@@ -1,6 +1,4 @@
 ## Title: |cFFFFB0Guild Chat|r by |c00C000CrazyDutchGuy & Wobin|r
-## Author: CrazyDutchGuy & Wobin
-## Version: v4.3
 ## APIVersion: 100007
 ## SavedVariables: GuildChat_Settings
 ## OptionalDependsOn: LibStub LibAddonMenu-2.0