minetest-mods / irc

IRC Mod for Minetest
BSD 2-Clause "Simplified" License
43 stars 31 forks source link

Fix message when a player on another server times out #58

Closed rdococ closed 4 years ago

rdococ commented 4 years ago

Replaces

<Server@IRC> *** player left the game (Timed out)

with

*** player left Server (Timed out)

SmallJoker commented 4 years ago

or above: text:find("^%*%*%* ([^%s]+) left the game.*")

rdococ commented 4 years ago

I wanted players to know it's a time out. That said, text:find("^%*%*%* ([^%s]+) left the game(.*)") and then taking whatever's on the end and adding it to the message displayed ingame would work, but people could pretend to be a bot and put anything they want there.