1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-11-05 17:50:20 +01:00

Remove newlines from replies

This commit is contained in:
ShadowNinja 2014-07-07 23:22:52 -04:00
parent e92eec3987
commit 12b1b07afe

View File

@ -126,6 +126,7 @@ function irc:reply(message)
if not self.last_from then
return
end
message = message:gsub("[\r\n%z]", " \\n ")
self:say(self.last_from, message)
end