Mercurial > wow > guild-delta
comparison gd.lua @ 11:3961b0cc4642
TOC bump. Work around mature language filter bug.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Wed, 30 Nov 2011 20:00:40 +0000 |
| parents | be450e79048a |
| children | 5efaeb3ef4b1 |
comparison
equal
deleted
inserted
replaced
| 10:89babe1c1f6e | 11:3961b0cc4642 |
|---|---|
| 222 return prt(txt, SV.red, SV.green, SV.blue) | 222 return prt(txt, SV.red, SV.green, SV.blue) |
| 223 end | 223 end |
| 224 | 224 |
| 225 function addon:current_guild_info (N) | 225 function addon:current_guild_info (N) |
| 226 local ret = {} | 226 local ret = {} |
| 227 local swearing = GetCVar("profanityFilter") | |
| 228 SetCVar ("profanityFilter", "0") | |
| 227 for i = 1, N do | 229 for i = 1, N do |
| 228 local name,rank_as_string,_,level,_,_,publicnote,officernote = GetGuildRosterInfo(i) | 230 local name,rank_as_string,_,level,_,_,publicnote,officernote = GetGuildRosterInfo(i) |
| 229 -- This technically does not work out to the same as A?B:C, combined | 231 -- This technically does not work out to the same as A?B:C, combined |
| 230 -- with the logic below. It does, however, still result in the entry | 232 -- with the logic below. It does, however, still result in the entry |
| 231 -- not appearing in the returned table. | 233 -- not appearing in the returned table. |
| 240 onote = SV.fields.notes and officernote or nil, | 242 onote = SV.fields.notes and officernote or nil, |
| 241 }) | 243 }) |
| 242 end | 244 end |
| 243 end | 245 end |
| 244 table.sort(ret, function (l,r) return l.name < r.name end) | 246 table.sort(ret, function (l,r) return l.name < r.name end) |
| 247 SetCVar ("profanityFilter", swearing) | |
| 245 return ret | 248 return ret |
| 246 end | 249 end |
| 247 | 250 |
| 248 function addon.options.args.output.args.print_chatframes.func() | 251 function addon.options.args.output.args.print_chatframes.func() |
| 249 for i = 1, NUM_CHAT_WINDOWS do | 252 for i = 1, NUM_CHAT_WINDOWS do |
