Page 2 of 2
Re: Muting/banning player ingame
Posted: 14 Apr 2012, 22:08
by very_bad_soldier
Thanks for pointing that out. Implemented and added to BA. That should fix the "Zan-issue".
Btw syntax is "/mute <playername>" and "/unmute <playername>"
Re: Muting/banning player ingame
Posted: 25 Apr 2012, 13:45
by Pako
This is best done by fixing the widgethandler and returning false from AddConsoleLine for muted chat. -> No need to edit all the chat widgets.
Re: Muting/banning player ingame
Posted: 25 Apr 2012, 14:29
by knorke
good idea..
is that the widgets\widgets.lua file?
because ba has some bawidgets.lua so it would require change to mod..?
Re: Muting/banning player ingame
Posted: 25 Apr 2012, 14:37
by Pako
I did it for the new widget handler.
Code: Select all
function hHookFuncs.AddConsoleLine(line, level)
for _,f in hCallInLists.AddConsoleLine:iter() do
if (f(line, level)) then
return true
end
end
return false
end
Old widgethandler, just add the if return.
BTW will work only for Luaui handled console drawing, because engine doesn't test the return value..
Code: Select all
function widgetHandler:AddConsoleLine(msg, priority)
for _,w in ipairs(self.AddConsoleLineList) do
w:AddConsoleLine(msg, priority)
end
return
end
Re: Muting/banning player ingame
Posted: 25 Apr 2012, 14:56
by Pako
mute widget