<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,33 +3,44 @@
 --      Namespace Declaration      --
 -------------------------------------
 
-Quecho = DongleStub(&quot;Dongle-1.0&quot;):New(&quot;Quecho&quot;)
+Quecho = {}
 
 
-function Quecho:Initialize()
-	self.quests = setmetatable({}, {__index = function (t,i)
-		local v = {}
-		rawset(t, i, v)
-		return v
-	end})
-end
+Quecho.quests = setmetatable({}, {__index = function (t,i)
+	local v = {}
+	rawset(t, i, v)
+	return v
+end})
+
+
+local f = CreateFrame(&quot;Frame&quot;)
+f:SetScript(&quot;OnEvent&quot;, function(frame, event, ...) if Quecho[event] then return Quecho[event](Quecho, event, ...) end end)
+f:RegisterEvent(&quot;ADDON_LOADED&quot;)
+
 
+function Quecho:ADDON_LOADED(event, addon)
+	if addon ~= &quot;Quecho&quot; then return end
 
-function Quecho:Enable()
-	self:RegisterEvent(&quot;UI_INFO_MESSAGE&quot;)
-	self:RegisterEvent(&quot;CHAT_MSG_ADDON&quot;)
-	self:RegisterEvent(&quot;QUEST_LOG_UPDATE&quot;)
 	self:QUEST_LOG_UPDATE()
+
+	f:RegisterEvent(&quot;UI_INFO_MESSAGE&quot;)
+	f:RegisterEvent(&quot;CHAT_MSG_ADDON&quot;)
+	f:RegisterEvent(&quot;QUEST_LOG_UPDATE&quot;)
+
+	f:UnregisterEvent(&quot;ADDON_LOADED&quot;)
+	self.ADDON_LOADED = nil
 end
 
 
+function Quecho:PrintF(...) ChatFrame1:AddMessage(string.format(...)) end
+
+
 ---------------------------
 --      Reset timer      --
 ---------------------------
 
 local DELAY = 60 * 5
 local sendtimes, nextpurge = {}
-local f = CreateFrame(&quot;Frame&quot;)
 local function OnUpdate(f)
 	if not nextpurge then f:SetScript(&quot;OnUpdate&quot;, nil) end
 
@@ -40,7 +51,6 @@ local function OnUpdate(f)
 			for objective in pairs(objectives) do
 				local t = sendtimes[sender..objective]
 				if (t + DELAY) &lt;= now then
-					Quecho:Debug(1, &quot;Purging&quot;, sender..objective)
 					sendtimes[sender..objective] = nil
 					Quecho.quests[sender][objective] = nil
 				elseif not next2 or t &lt; next2 then next2 = t end
@@ -70,7 +80,6 @@ function Quecho:CHAT_MSG_ADDON(event, prefix, msg, channel, sender)
 
 	if prefix == &quot;Quecho&quot; then
 		local _, _, objective, progress = msg:find(&quot;(.+): (%d+/%d+)&quot;)
-		self:Debug(1, sender, msg, objective, progress)
 
 		sendtimes[sender..objective] = GetTime()
 		if not nextpurge then</diff>
      <filename>Quecho.lua</filename>
    </modified>
    <modified>
      <diff>@@ -6,12 +6,8 @@
 ## Version: Alpha
 ## X-Category: Quest
 
-## OptionalDeps: Dongle
-
 ## LoadManagers: AddonLoader
 ## X-LoadOn-Group: true
 
-Dongle.lua
-
 Quecho.lua
 Tracker.lua</diff>
      <filename>Quecho.toc</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>Dongle.lua</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>deaa50a95e6da7907146579e13ddaafb069e3663</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub Stoutwrithe</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/quecho/commit/ac2c4534b1dfdbc36731af0632e5bfd63a21c099</url>
  <id>ac2c4534b1dfdbc36731af0632e5bfd63a21c099</id>
  <committed-date>2008-05-09T10:23:41-07:00</committed-date>
  <authored-date>2008-05-09T10:23:41-07:00</authored-date>
  <message>De-dongle</message>
  <tree>cbcdd2046ddb54256dabf097ee1e8b9f05e1a2a6</tree>
  <committer>
    <name>Tekkub Stoutwrithe</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
