Fix: linter warnings

master
shivajiva101 2020-05-08 20:23:45 +01:00 committed by GitHub
parent 7ada3c96eb
commit 4f82eb5550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1439,9 +1439,9 @@ local function clean_join_cache(name)
end
-- fix irc mod with an override
if irc then
irc.reply = function(message)
if not irc.last_from then
if irc then -- luacheck: ignore
irc.reply = function(message) -- luacheck: ignore
if not irc.last_from then -- luacheck: ignore
return
end
message = message:gsub("[\r\n%z]", " \\n ")