mirror of
https://github.com/minetest-mods/irc.git
synced 2025-05-18 23:10:22 +02:00
Remove newlines from replies
This commit is contained in:
parent
e92eec3987
commit
12b1b07afe
1
init.lua
1
init.lua
@ -126,6 +126,7 @@ function irc:reply(message)
|
|||||||
if not self.last_from then
|
if not self.last_from then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
message = message:gsub("[\r\n%z]", " \\n ")
|
||||||
self:say(self.last_from, message)
|
self:say(self.last_from, message)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user