Skip to content

Commit

Permalink
Fixed censor for chats sent from console (refs #87)
Browse files Browse the repository at this point in the history
  • Loading branch information
timosmit committed Feb 5, 2019
1 parent 12c21f2 commit 2e6b8ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion luascripts/wolfadmin/admin/censor.lua
Expand Up @@ -30,9 +30,11 @@ local censor = {}
local words = {}
local names = {}

function censor.filterMessage(message)
function censor.filterMessage(...)
local censored = false

local message = table.concat({...}, " ")

for _, word in ipairs(words) do
local occurrences

Expand Down

0 comments on commit 2e6b8ab

Please sign in to comment.