@@ -62,7 +62,7 @@ local LSM = E.Libs.LSM
62
62
E .noop = function () end
63
63
E .title = format (' %s%s|r' , E .InfoColor , ' ElvUI' )
64
64
E .toc = tonumber (GetAddOnMetadata (' ElvUI' , ' X-Interface' ))
65
- E .version , E .versionString = E :ParseVersionString (' ElvUI' )
65
+ E .version , E .versionString , E . versionDev , E . versionGit = E :ParseVersionString (' ElvUI' )
66
66
E .myfaction , E .myLocalizedFaction = UnitFactionGroup (' player' )
67
67
E .myLocalizedClass , E .myclass , E .myClassID = UnitClass (' player' )
68
68
E .myLocalizedRace , E .myrace , E .myRaceID = UnitRace (' player' )
@@ -900,14 +900,12 @@ end
900
900
do
901
901
local SendMessageWaiting -- only allow 1 delay at a time regardless of eventing
902
902
function E :SendMessage ()
903
- if E .version < 99999 then
904
- if IsInRaid () then
905
- C_ChatInfo_SendAddonMessage (' ELVUI_VERSIONCHK' , E .version , (not IsInRaid (LE_PARTY_CATEGORY_HOME ) and IsInRaid (LE_PARTY_CATEGORY_INSTANCE )) and ' INSTANCE_CHAT' or ' RAID' )
906
- elseif IsInGroup () then
907
- C_ChatInfo_SendAddonMessage (' ELVUI_VERSIONCHK' , E .version , (not IsInGroup (LE_PARTY_CATEGORY_HOME ) and IsInGroup (LE_PARTY_CATEGORY_INSTANCE )) and ' INSTANCE_CHAT' or ' PARTY' )
908
- elseif IsInGuild () then
909
- C_ChatInfo_SendAddonMessage (' ELVUI_VERSIONCHK' , E .version , ' GUILD' )
910
- end
903
+ if IsInRaid () then
904
+ C_ChatInfo_SendAddonMessage (' ELVUI_VERSIONCHK' , E .version , (not IsInRaid (LE_PARTY_CATEGORY_HOME ) and IsInRaid (LE_PARTY_CATEGORY_INSTANCE )) and ' INSTANCE_CHAT' or ' RAID' )
905
+ elseif IsInGroup () then
906
+ C_ChatInfo_SendAddonMessage (' ELVUI_VERSIONCHK' , E .version , (not IsInGroup (LE_PARTY_CATEGORY_HOME ) and IsInGroup (LE_PARTY_CATEGORY_INSTANCE )) and ' INSTANCE_CHAT' or ' PARTY' )
907
+ elseif IsInGuild () then
908
+ C_ChatInfo_SendAddonMessage (' ELVUI_VERSIONCHK' , E .version , ' GUILD' )
911
909
end
912
910
913
911
SendMessageWaiting = nil
957
955
_G .C_ChatInfo .RegisterAddonMessagePrefix (' ELVUI_VERSIONCHK' )
958
956
959
957
local f = CreateFrame (' Frame' )
958
+ f :SetScript (' OnEvent' , SendRecieve )
960
959
f :RegisterEvent (' CHAT_MSG_ADDON' )
961
960
f :RegisterEvent (' GROUP_ROSTER_UPDATE' )
962
961
f :RegisterEvent (' PLAYER_ENTERING_WORLD' )
963
- f :SetScript (' OnEvent' , SendRecieve )
964
962
end
965
963
966
964
function E :UpdateStart (skipCallback , skipUpdateDB )
0 commit comments