Commit Graph

25 Commits

Author SHA1 Message Date
MangosArentLiterature
4f7d5cd045 Discord webhook refactor
Completely refactors the Discord class, breaking it up into separate functions and slots, removing circular dependencies, and replacing most pointers with const references.
2021-06-17 19:21:37 -05:00
MangosArentLiterature
65467df4ba Merge branch 'master' into password-requirements 2021-06-03 11:56:27 -05:00
Rebecca
93de5d3860
Update bin/config_sample/config.ini
Co-authored-by: Rose <32779090+in1tiate@users.noreply.github.com>
2021-05-11 18:17:13 -05:00
Salanto
d55f4b58cf Somehow this got not commited 2021-05-12 00:13:22 +02:00
MangosArentLiterature
7c09ce6b5c Add password requirements
* Adds several configurable options for server owners to set requirements for passwords.
* This system can be enabled/disabled with the password_requirements option.
* Checks new and updated passwords against these requirements.
2021-05-08 21:15:16 -05:00
Salanto
ea741f07a6 Update sample config.ini 2021-05-05 00:13:19 +02:00
MangosArentLiterature
4dabc723ac Add message_floodguard to default config.ini 2021-05-01 23:06:11 -05:00
Salanto
32e88d6be1 Merge remote-tracking branch 'upstream/master' into discord 2021-04-27 23:42:14 +02:00
Salanto
8aed2989f2 Add file upload if modcall logging is used
+ Configurable option if no log should be send
+ Fix  logger not flushing to file if modcall is used
+ Update sample\config.ini
2021-04-27 23:28:45 +02:00
MangosArentLiterature
e75b80aaae Add modcall webhook support
This is the worst code I have ever contributed to this project. This commit is the result of several days of attempting to decipher Qt's documentation. This is the best I can write. Qt has broken me. God help us all.

- Allows sending modcalls to a discord webhook, containing the name of the sender, the area, and the reason.
- Adds configurable options to config.ini for enabling/disabling webhooks and specifying the webhook url.
2021-04-25 15:49:47 -05:00
MangosArentLiterature
9c3cd12202 Add a size limit to packets and a configurable maximum character limit for messages
- Limits packets to under 16KB
- Adds a configurable option to config.ini for setting the maximum amount of characters in an IC/OOC message
- Limits the size of OOC names to 30 chars
   - The client already limits this, but this is an added precaution.
- Limits the length of shownames to 30 chars
- Implements shownames_allowed for areas, for toggling whether shownames are allowed for messages in that area
2021-04-19 19:44:46 -05:00
scatterflower
e252ed04e9 make it configurable 2021-04-19 02:09:24 -05:00
Salanto
0a001141cf Increase the amount of allowed messages 2021-04-13 21:25:24 +02:00
Salanto
c61f578b40 Add some documentation + add sample config
Also removes some redundant functions and adds the respective commands.
2021-04-13 21:15:33 +02:00
MangosArentLiterature
a54772234d
fix dumb typo 2021-04-05 13:09:03 -05:00
MangosArentLiterature
d51203e634 Add configurable logging options 2021-04-04 02:47:36 -05:00
Salanto
06864e115a Make MODT editable - Part 1 2021-03-12 00:44:27 +01:00
Salanto
3e1f9825ca motd. Can't get simpler than that. 2021-03-11 22:42:47 +01:00
Salanto
778153c94c Update sample config to include sample dice values 2021-03-03 17:30:51 +01:00
scatterflower
83751d025a add logging to ooc, modcalls, and clean up default config.ini 2020-10-06 14:23:01 -05:00
scatterflower
288e8ffa49 add modcall and IC logging 2020-10-04 14:35:45 -05:00
scatterflower
d4c52e9b65 implement advanced permissions system 2020-09-29 01:16:38 -05:00
scatterflower
594782d19c begin working on bans 2020-09-27 16:53:03 -05:00
scatterflower
b37410fa1a implement command handler, getarea(s), and mod login 2020-09-26 14:55:57 -05:00
scatterflower
63e1ddf36a change config to user-neutral name 2020-09-02 08:37:25 -05:00