Code cleanup

This commit is contained in:
Pascal Engélibert 2022-01-29 23:44:56 +01:00
parent c33d1e9cb6
commit e307c24e06
Signed by: tuxmain
GPG Key ID: 3504BC6D362F7DCA
2 changed files with 160 additions and 161 deletions

View File

@ -32,7 +32,7 @@ See [Matrix API docs](https://www.matrix.org/docs/guides/client-server-api).
A bit of code comes from [diggers-mt/matrix_chat](https://github.com/diggers-mt/matrix_chat): BSD-2-Clause, Copyright 2017 Jon Neverland (joenas)
GNU AGPL v3, CopyLeft 2022 Pascal Engélibert (tuxmain)
GNU AGPL v3, CopyLeft 2022 Pascal Engélibert (tuxmain), scuti
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

View File

@ -224,8 +224,7 @@ end)
minetest.register_on_leaveplayer(function(player, timed_out)
local name = player:get_player_name()
MatrixChat:send("*** "..name.." left the game"..
(timed_out and " (Timed out)" or ""))
MatrixChat:send("*** "..name.." left the game"..(timed_out and " (Timed out)" or ""))
end)
minetest.register_on_chat_message(function(name, message)