Mercurial > wow > ouroloot
comparison core.lua @ 122:fb4bda3ad05c
Various trivial cleanups.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 17 Aug 2012 01:04:38 -0400 |
parents | ec5174529e0f |
children | a9cf9b2fbf9b |
comparison
equal
deleted
inserted
replaced
121:4dd67f8116f4 | 122:fb4bda3ad05c |
---|---|
3219 --kind = 'realm', | 3219 --kind = 'realm', |
3220 --realm = realmname, | 3220 --realm = realmname, |
3221 } | 3221 } |
3222 t.realm = realmname | 3222 t.realm = realmname |
3223 | 3223 |
3224 --[[ | |
3225 t.cols = setmetatable({ | |
3226 { value = realmname }, | |
3227 }, self.time_column1_used_mt) | |
3228 ]] | |
3229 | |
3230 if not t.byname then | 3224 if not t.byname then |
3231 self:_build_history_names (t) | 3225 self:_build_history_names (t) |
3232 end | 3226 end |
3233 | 3227 |
3234 return t | 3228 return t |
3692 | 3686 |
3693 | 3687 |
3694 ------ Player communication | 3688 ------ Player communication |
3695 do | 3689 do |
3696 local select, tconcat, strsplit, unpack = select, table.concat, strsplit, unpack | 3690 local select, tconcat, strsplit, unpack = select, table.concat, strsplit, unpack |
3697 --[[ old way: repeated string concatenations, BAD | |
3698 new way: new table on every broadcast, BAD | |
3699 local msg = ... | |
3700 for i = 2, select('#',...) do | |
3701 msg = msg .. '\a' .. (select(i,...) or "") | |
3702 end | |
3703 return msg | |
3704 ]] | |
3705 local function assemble(t,...) | 3691 local function assemble(t,...) |
3706 local n = select('#',...) | 3692 local n = select('#',...) |
3707 if n > 0 then | 3693 if n > 0 then |
3708 local msg = {t,...} | 3694 local msg = {t,...} |
3709 -- tconcat requires strings, but T is known to be one already | 3695 -- tconcat requires strings, but T is known to be one already |
3831 end | 3817 end |
3832 self:broadcast('bcast_responder') | 3818 self:broadcast('bcast_responder') |
3833 end) | 3819 end) |
3834 local waferthin = addon.format_hypertext ([[the blue pill]], '|cff0070dd', | 3820 local waferthin = addon.format_hypertext ([[the blue pill]], '|cff0070dd', |
3835 function (self) | 3821 function (self) |
3836 g_wafer_thin = true -- mint? it's wafer thin! | 3822 g_wafer_thin = true -- mint? it's wafer thin! |
3837 self:broadcast('bcast_denied') -- fuck off, I'm full | 3823 self:broadcast('bcast_denied') -- fuck off, I'm full |
3838 end) | 3824 end) |
3839 OCR_funcs.bcast_req = function (sender) | 3825 OCR_funcs.bcast_req = function (sender) |
3840 if addon.debug.comm or ((not g_wafer_thin) and (not addon.rebroadcast)) | 3826 if addon.debug.comm or ((not g_wafer_thin) and (not addon.rebroadcast)) |
3841 then | 3827 then |