A bunch of updates
A bunch of patches I wrote in the past years and currently running on Unvanquished server.
Fix compilation
I don't remember what was the issue but I needed this to compile Mantis on Unvanquished server years ago.
Strip IRC formatting code
Useful for the next feature.
<nickname> message
“
Strip bridged nicknames in the form “In conjunction with feature to strip IRC formatting code, makes possible to respond to queries bridged by other bots.
The bridged message format must be written by the bridge
on the same channel Mantis is reading with “<nickname> message
”
format including ‘<
’ and ‘>
’ characters surrounding nicknames.
Thanks to code stripping IRC formatting code, it's still possible to let the bridge use colors and other formatting to colour and format nicknames and messages without preventing Mantis to extract properly the queries from the bridged messages.
Unvanquished uses it to make Mantis respond to queries made from Matrix or Discord through matterbridge.
Make peekPeriod and minPlayers configuration options
For example on Unvanquished server I changed the period from 6 hours to 1 hours on #unvanquished some months ago.
Make URL prefix a configuration option
For example on Unvanquished server I changed the protocol from unv://
to https://go.unvanquished.net/
which implements an http redirect to unv://
so chat software recognizing https://
URLs can make clickable links from URLs written by the bot.