Commit Graph

83 Commits

Author SHA1 Message Date
Salanto
fb1caf6cee Add optional content field for Webhook
Allows the usage of pings with the webhook. Only added to the hook message if configured.
2021-05-12 00:12:46 +02:00
Salanto
5248cc718f Add asset packet + AO NetEncode 2021-05-05 00:11:37 +02:00
MangosArentLiterature
9b03d91396 Set a floodguard between IC messages
- Adds a timer to run between IC messages, preventing IC messages from being sent until it times out.
- The duration of this timer is configurable.
2021-05-01 23:03:29 -05:00
Denton Poss
04862c3757
Merge pull request #107 from MangosArentLiterature/discord
Add Discord Webhook for Modcall + Optional Buffer Log Upload
2021-05-01 10:08:50 -05:00
MangosArentLiterature
8ef6a3526b Purge zalgo_tolerance 2021-04-29 22:19:30 -05:00
Salanto
96396d3404 Apply some suggested changes 2021-04-29 01:02:47 +02:00
Salanto
b689c71533 Revert "Apply code suggestions"
This reverts commit e00e7b571d.
2021-04-28 23:53:03 +02:00
Salanto
e00e7b571d Apply code suggestions
Non-functional as of now.
2021-04-28 23:32:48 +02: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
scatterflower
e8a99eb35a implement multiclient limit 2021-04-19 01:54:22 -05:00
scatterflower
08ba6ef278 change curse list to int list, marked unavailable chars as taken 2021-04-18 18:57:33 -05:00
in1tiate
93c4f19bfb
Merge branch 'master' into afk 2021-04-15 14:30:20 -05:00
MangosArentLiterature
06b70a35d5
Make maximum_statements actually get loaded in
Also has the effect of making it changeable with /reload, hooray!
2021-04-15 11:53:20 -05:00
in1tiate
f0412e0e05 add AFK system 2021-04-15 06:34:31 -05:00
scatterflower
853e6e3ff4
Merge pull request #60 from Salanto/Testimony-Playback
Add testimony playback
2021-04-14 14:11:10 -05:00
Salanto
fb7ad8c25f
Merge branch 'master' into Testimony-Playback 2021-04-14 09:03:28 +02:00
MangosArentLiterature
7d7f25f4cb Merge branch 'master' into joke-mod-commands 2021-04-14 00:47:27 -05:00
MangosArentLiterature
5f0cc8537f Add /reload
Ceraptor helped me figure this out.

- Adds /reload to reload values from config.ini, command config files, and recontact the master server
- Adds Server::requestReload and Advertiser::reloadRequested
- Adds QString server_desc and some minor changes to config loading.
2021-04-13 16:43:50 -05: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
e529086f21 Minor tweak of loading command configs 2021-04-09 19:48:21 -05:00
MangosArentLiterature
86c25555b2 Add a new method of loading values from config.ini
- Centralizes the loading of values from config.ini, loading them all in at server start and holding them in memory.
- Removes all other methods of loading config.ini values and replaces them with references to these central values.
- Removes getServerName() and getDiceValue()
2021-04-09 19:18:46 -05:00
MangosArentLiterature
23d50b9216 Add /gimp
- Also adds some documentation of other joke mod commands to aoclient.h.
2021-04-09 03:18:10 -05:00
MangosArentLiterature
290862c504 Add a new system of loading configuration files for commands.
- Adds ConfigManager::verifyCommandConfig(), which verifies the command config files found in config/text/ exist and are files.
- Adds Server::loadConfigFile(), which returns the contents of a txt file in config/text/ into a stringlist.
- Adds Server::loadCommandConfig(), which loads stringlists for commands to utilize using loadConfigFile().
2021-04-08 22:51:04 -05:00
scatterflower
953e9a50c7 fix ipids not being generated 2021-04-03 03:10:06 -05:00
Cerapter
c13a2d06f9 Merge branch 'master' into feature/docs 2021-03-24 21:02:21 +01:00
Cerapter
0612494277
Document Server 2021-03-15 18:05:26 +01:00
in1tiate
2a8ed66c4f rework getClient into getClientsByIpid, alter /ban and /kick to report number of clients affected 2021-03-14 12:11:18 -05:00
in1tiate
a62b12fb7a fix area config reading based on sanitized name 2021-03-12 05:01:31 -06:00
in1tiate
32c2d6a5e2
Merge branch 'master' into motd 2021-03-11 21:45:49 -06:00
in1tiate
ee9ae6d7c6 rework characters_taken to be a QList<int> 2021-03-11 20:09:04 -06: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
scatterflower
eba21d9108
Merge pull request #22 from AttorneyOnline/fix/area-sort
Fix areas being sorted lexicographically by storing a numerical position in the area name and sorting numerically
2021-03-11 13:42:58 -06:00
in1tiate
9d10431da7 store a position in area config and sort areas numerically 2021-03-11 09:57:41 -06:00
in1tiate
d1918e50a9 add area_kick, switch, randomchar 2021-03-09 18:09:28 -06:00
in1tiate
9985b7daf8 fix bounds checking, add /play 2021-03-09 17:43:20 -06:00
in1tiate
e65caf2a59 probably initializing the timers would be a good idea 2021-03-06 00:00:50 -06:00
in1tiate
f46eeeb94f
Merge branch 'master' into in1tiate/cming 2021-03-04 05:24:06 -06:00
Salanto
f2fe5227d6 Formatting if-else, Minor Nitpick 2021-03-03 18:36:20 +01:00
in1tiate
954e64831c fix some config shenanigans 2021-03-03 01:44:41 -06:00
Salanto
10072aa9fc Corrected datatype in header and function 2021-03-03 01:49:10 +01:00
Salanto
c696e7d525 Attempted a smarter approach at handling negative numbers 2021-03-03 01:23:36 +01:00
in1tiate
080e215fb3 cherrypick additional functionality from Salanto:Rolling-Rocks 2021-02-28 18:12:42 -06:00
Salanto
11066acdb3 Add method to configure the server name
+ Remove some redundant code to make use of this method
2021-02-28 00:45:54 +01:00
in1tiate
033d4f93e5 add CMing and document commands 2021-02-27 17:36:21 -06:00
scatterflower
73381f97ef some logging improvements 2020-10-08 00:19:13 -05:00