comparison Comm.lua @ 102:21567b74fcc7

Notes and corrections
author John@Doomsday
date Thu, 03 May 2012 09:05:24 -0400
parents 5914125bb4ea
children c6c748a5823b
comparison
equal deleted inserted replaced
101:25c127c4c1e8 102:21567b74fcc7
123 ["CU"] = function(self,packet,sender,isloop) -- blindly trust an admin loot master 123 ["CU"] = function(self,packet,sender,isloop) -- blindly trust an admin loot master
124 if isloop then return end 124 if isloop then return end
125 IntegrateChangeDiff(packet) 125 IntegrateChangeDiff(packet)
126 end, 126 end,
127 127
128 ["RequestCatchup"] = function(self) 128 ["RequestCatchup"] = function(self,from) -- todo: integrate from
129 if not admin then 129 if not admin then
130 --local string = _g.tostring(timestamp) 130 --local string = _g.tostring(timestamp)
131 --for i,v in ipairs(db.profile.changes) do -- append all change timestamps 131 --for i,v in ipairs(db.profile.changes) do -- append all change timestamps
132 -- string = string .. "|" .. _g.tostring(v.time) 132 -- string = string .. "|" .. _g.tostring(v.time)
133 --end 133 --end
157 RemoteAdminUpdateReceived(sender,packet) 157 RemoteAdminUpdateReceived(sender,packet)
158 end 158 end
159 end, 159 end,
160 160
161 ["SendAdminStatusTable"] = function(self) 161 ["SendAdminStatusTable"] = function(self)
162 if admin and onloadAdminStatus and _G.next(onloadAdminStatus) then 162 if admin then
163 SendAdmin("SA",onloadAdminStatus) -- only send onload status, since that's the only data you're guaranteed to have safely safed 163 SendAdmin("SA",onloadAdminStatus) -- only send onload status, since that's the only data you're guaranteed to have safely safed
164 end 164 end
165 end, 165 end,
166 } 166 }
167 167