Mercurial > wow > libmoduledbshare-1-0
changeset 25:e825492d4edd
Removed print statements from callback forwarders.
Corrected profile changed forwarder.
| author | Andrew Knoll <andrewtknoll@gmail.com> |
|---|---|
| date | Fri, 15 Mar 2013 23:33:28 -0400 |
| parents | efdeebcef96e |
| children | 4bc47e7b549d |
| files | LibModuleDBShare-1.0/LibModuleDBShare-1.0.lua |
| diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/LibModuleDBShare-1.0/LibModuleDBShare-1.0.lua Fri Mar 15 22:26:14 2013 -0400 +++ b/LibModuleDBShare-1.0/LibModuleDBShare-1.0.lua Fri Mar 15 23:33:28 2013 -0400 @@ -128,32 +128,26 @@ -- callback handlers (new profiles are handled by OnProfileChanged) function DBGroup:OnProfileChanged(callback, syncDB, profile) - print("Group "..self.name..": Profile Changed to "..profile); if not self.squelchCallbacks then for db, _ in pairs(self.members) do - db:ChangeProfile(profile); + db:SetProfile(profile); end - else - print(" squelched"); end end function DBGroup:OnProfileDeleted(callback, syncDB, profile) - print("Group "..self.name..": Profile Deleted: "..profile); for db, _ in pairs(self.members) do db:DeleteProfile(profile, true); end end function DBGroup:OnProfileCopied(callback, syncDB, profile) - print("Group "..self.name..": Profile Copied from "..profile); for db, _ in pairs(self.members) do db:CopyProfile(profile, true); end end function DBGroup:OnProfileReset(callback, syncDB) - print("Group "..self.name..": Profile Reset"); for db, _ in pairs(self.members) do db:ResetProfile(false, false); end
