comparison Devian.lua @ 38:d432f49e340e v2.0-beta-r38

remove prints
author Nenue
date Sun, 27 Dec 2015 08:35:28 -0500
parents bec37163b7fe
children e95cccfcfeb7
comparison
equal deleted inserted replaced
37:e3206e85ca70 38:d432f49e340e
117 end 117 end
118 118
119 local sig 119 local sig
120 if tag ~= nil and dest ~= nil then 120 if tag ~= nil and dest ~= nil then
121 --@debug@ 121 --@debug@
122 print(tag, dest) 122 --print(tag, dest)
123 --@end-debug@ 123 --@end-debug@
124 124
125 -- convert to ID 125 -- convert to ID
126 if tonumber(dest) == nil then 126 if tonumber(dest) == nil then
127 if D.sigID[dest] then 127 if D.sigID[dest] then
128 dest = db.channels[D.sigID[dest]].index 128 dest = db.channels[D.sigID[dest]].index
129 else 129 else
130 sig = dest 130 sig = dest
131 end 131 end
132 end 132 end
133 print('2 tag,dest,sig', tag, dest, sig) 133 --@debug@
134 --print('2 tag,dest,sig', tag, dest, sig)--@end-debug@
134 135
135 -- make a new channel? 136 -- make a new channel?
136 local channel 137 local channel
137 if not db.channels[dest] then 138 if not db.channels[dest] then
138 dest = D.max_channel + 1 139 dest = D.max_channel + 1
139 D:Print('Created channel |cFF88FFFF'.. (sig and (dest..':'..sig) or dest ) .. '|r') 140 D:Print('Created channel |cFF88FFFF'.. (sig and (dest..':'..sig) or dest ) .. '|r')
140 channel = D:SetChannel(sig or tag,dest) 141 channel = D:SetChannel(sig or tag,dest)
141 end 142 end
142 print('3',tag, dest) 143 --@debug@
144 --print('3',tag, dest)--@end-debug@
143 145
144 if db.tags[tag] and db.tags[tag][dest] then 146 if db.tags[tag] and db.tags[tag][dest] then
145 db.tags[tag][dest] = nil 147 db.tags[tag][dest] = nil
146 D:Print('Hiding |cFF88FFFF'..tag..'|r messages in |cFFFFFF00'..db.channels[dest].index ..':'.. db.channels[dest].signature) 148 D:Print('Hiding |cFF88FFFF'..tag..'|r messages in |cFFFFFF00'..db.channels[dest].index ..':'.. db.channels[dest].signature)
147 else 149 else
422 end 424 end
423 425
424 426
425 for i, channel in pairs(db.channels) do 427 for i, channel in pairs(db.channels) do
426 if type(channel.docked) == 'table' then 428 if type(channel.docked) == 'table' then
427 oldprint('docking',i, unpack(channel.docked)) 429 --oldprint('docking',i, unpack(channel.docked))
428 self.DockFrame(i, unpack(channel.docked)) 430 self.DockFrame(i, unpack(channel.docked))
429 end 431 end
430 end 432 end
431 433
432 if self.console[db.current_channel] then 434 if self.console[db.current_channel] then
441 443
442 --- Console frame toggler 444 --- Console frame toggler
443 -- @paramsig [...] 445 -- @paramsig [...]
444 -- @param ... one or more space-seperated channel keys 446 -- @param ... one or more space-seperated channel keys
445 function D:Console_Toggle(input) 447 function D:Console_Toggle(input)
446 oldprint(input) 448 --oldprint(input)
447 if db.workspace == 1 then 449 if db.workspace == 1 then
448 return self:Print(MSG_NEED_DEV_MODE) 450 return self:Print(MSG_NEED_DEV_MODE)
449 end 451 end
450 local search = {} 452 local search = {}
451 local n = 0 453 local n = 0
462 search = self.sigID 464 search = self.sigID
463 end 465 end
464 466
465 db.enabled = (not db.enabled) and true or nil 467 db.enabled = (not db.enabled) and true or nil
466 for i, id in pairs(search) do 468 for i, id in pairs(search) do
467 oldprint(i, id) 469 --oldprint(i, id)
468 local c = self.console[id] 470 local c = self.console[id]
469 if db.enabled then 471 if db.enabled then
470 c.enabled = true 472 c.enabled = true
471 c:Show() 473 c:Show()
472 if db.current_channel == c.index then 474 if db.current_channel == c.index then