Skip to content

Instantly share code, notes, and snippets.

@Shadowed
Created August 10, 2009 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shadowed/165277 to your computer and use it in GitHub Desktop.
Save Shadowed/165277 to your computer and use it in GitHub Desktop.
diff --git a/LibHealComm-3.0 (2).lua b/LibHealComm-3.0.lua
index 8920adc..58ec7b9 100644
--- a/LibHealComm-3.0 (2).lua
+++ b/LibHealComm-3.0.lua
@@ -604,6 +604,13 @@ function lib:GetUnitVersion(unit)
return Versions[targetName] or false;
end
+function lib:RequestGuildVersions()
+ commSend("999" .. tostring(MINOR_VERSION), "GUILD");
+end
+
+function lib:RequestVersions()
+ commSend("999" .. tostring(MINOR_VERSION));
+end
--------------------
-- Class Specific --
@@ -1439,11 +1446,6 @@ function lib:PARTY_MEMBERS_CHANGED()
InRaid = (GetNumRaidMembers() > 0);
InParty = (GetNumPartyMembers() > 0);
- -- Announce and request version when joining a group
- if (not wasInRaidOrParty and (InRaid or InParty)) then
- commSend("999" .. tostring(MINOR_VERSION));
- end
-
-- Update Subgroups table
twipe(Subgroup);
if (InRaid) then
@@ -1463,10 +1465,6 @@ end
function lib:Initialise()
InRaid = (GetNumRaidMembers() > 0);
InParty = (GetNumPartyMembers() > 0);
-
- -- Announce and request version in group and in guild
- commSend("999" .. tostring(MINOR_VERSION));
- commSend("999" .. tostring(MINOR_VERSION), "GUILD");
end
lib:Initialise();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment