Commit Graph

268 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
scatterflower
afa6b67085
Merge branch 'master' into password-changing 2021-05-11 08:46:08 -05:00
scatterflower
9e0d121fa4
Merge pull request #122 from AttorneyOnline/ban-table-additions
Add a moderator field to the ban table, add DB versioning, and fix /baninfo and /bans
2021-05-11 08:45:07 -05:00
scatterflower
f01db9b22e
Merge pull request #120 from Salanto/add-asset-packet
Add asset packet + network encoding
2021-05-11 08:44:09 -05:00
MangosArentLiterature
b7d95de9dc Add /changepass
* Adds a command allowing moderators to change their password.
* Users with SUPER permissions can change the password of other moderators.
* Resolves #124
2021-05-08 14:58:22 -05:00
MangosArentLiterature
67708f2c1b
Update /ban documentation 2021-05-07 21:46:16 -05:00
MangosArentLiterature
72d073e6df Fix /bans and /baninfo
* Adds moderator to /bans and /baninfo
* Fixes /bans and /baninfo returning incorrect information
* Changes syntax of /ban to: `/ban <ipid> <duration> <reason>`
2021-05-07 20:43:31 -05:00
MangosArentLiterature
c54f70dfdf Merge branch 'master' into ban-table-additions 2021-05-07 19:52:14 -05:00
MangosArentLiterature
ae808bd51b Add moderator column to the DB and a DB versioning scheme
- Implements a DB versioning system utilizing user_version.
- Implements a moderator column to the bans table, for storing the moderator who issued a ban.
2021-05-07 12:10:33 -05:00
in1tiate
5193e11401 add bypass locks permission 2021-05-05 09:32:16 -05:00
Salanto
5248cc718f Add asset packet + AO NetEncode 2021-05-05 00:11:37 +02:00
MangosArentLiterature
7a1a41932a fix an oopsie
accidentally gave everyone kick permissions uwu
2021-05-04 00:35:59 -05:00
Denton Poss
da0d458824
Merge pull request #105 from AttorneyOnline/bans-fixes
Bans fixes
2021-05-03 18:40:15 -05: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
220b9373fa
Merge pull request #106 from AttorneyOnline/login-changes
Change /login to use a "prompt" based system
2021-05-01 19:56:47 -05:00
MangosArentLiterature
fb6692d69d Merge branch 'master' into login-changes 2021-05-01 19:22:06 -05:00
Denton Poss
4117d6f3b0
Merge pull request #116 from AttorneyOnline/kicking-changes
Add /kickuid
2021-05-01 19:15:41 -05:00
MangosArentLiterature
8cb4ccd847 Merge branch 'master' into kicking-changes 2021-05-01 19:08:07 -05:00
MangosArentLiterature
0862c4b717 Add disconnect handling
- Server will now attempt to reconnect to the master server when connection to it is lost.
2021-05-01 19:06:37 -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
Denton Poss
984de65c7f
Merge pull request #112 from AttorneyOnline/fix-zalgo
Fix Dezalgo
2021-05-01 10:07:41 -05:00
in1tiate
69f77548a8 add firstperson variable and command toggle 2021-04-30 22:58:04 -05:00
MangosArentLiterature
f98df4e0b7 Add /kickuid
I keep being pestered to add this and it's a useful command. Let's you kick a specific UID, instead of all clients belonging to one IPID.
2021-04-29 23:34:13 -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
dc5375fff2 Update /login documentation 2021-04-26 16:33:13 -05:00
MangosArentLiterature
a5386ddc77 Change /login to use a "prompt" based system
This commit changes /login to no longer take command arguments. Instead, upon sending /login, you will enter an interactive "prompt", where your next OOC message will be interpreted as your login attempt (and will not be shown to other users). This prevents a typo from accidentally broadcasting your credentials to the entire area.

- Changes /login to take no command arguments, /login now sets a client state "is_logging_in".
- pktOocChat will now intercept a client's OOC message if they have this client state, and will interpret that as a moderator login.
- Adds the helper function loginAttempt() for handling moderator logins.
2021-04-26 16:29:56 -05:00
scatterflower
aba007a5fc fix /bans 2021-04-26 02:43:38 -05: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
2f69b51280 Limit the amount of data the server will read
Set a hard limit on 30KB that the server is willing to read, over two sequential reads. If the client sends more than 30KB combined, the server will disconnect the client.
2021-04-20 11:51:22 -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
Marisa P
0454ac114c
Merge pull request #88 from AttorneyOnline/messaging-commands
Add /charcurse and /uncharcurse
2021-04-18 21:23:35 -05:00
MangosArentLiterature
fcce8d9699 Document charcurse_list, fix /charcurse 2021-04-18 20:50:44 -05:00
MangosArentLiterature
8933ec2809 Clean up documentation, remove RollType
- Cleans up documentation for cmdRoll cmdRollP and diceThrower()
- Removes the obsolete enum RollType
2021-04-18 20:30:11 -05:00
MangosArentLiterature
75fe0a86f1 Merge branch 'master' into dice-roller-and-togglemusic 2021-04-18 20:22:57 -05:00
MangosArentLiterature
cf1e1cfc95 Add /togglemusic
- Adds /togglemusic to toggle whether music can be played in an area. CM's can still play music.
- Add toggle_music option to area.ini to set the default value in an area. Default value is set to true.
- Also fixes a missing period in the documentation for force_immediate. Because I noticed it.
2021-04-18 20:21:17 -05:00
MangosArentLiterature
a32cc0e27f Refactor AOClient::diceThrower() 2021-04-18 19:56:03 -05:00
scatterflower
5d1094c12d fix messed up merge conflict resolution 2021-04-18 19:44:34 -05:00
Marisa P
647c3cb398
Merge branch 'master' into messaging-commands 2021-04-18 19:41:56 -05:00
scatterflower
08ba6ef278 change curse list to int list, marked unavailable chars as taken 2021-04-18 18:57:33 -05:00
Salanto
40552b1602 Add /a and /s 2021-04-19 00:48:51 +02:00
MangosArentLiterature
6dfd7d173a Merge branch 'master' into messaging-commands 2021-04-18 16:18:05 -05:00
scatterflower
8156ae6515 add /charselect 2021-04-18 16:04:20 -05:00
Salanto
bddbafb87e Merge remote-tracking branch 'upstream/master' into Testimony-Loading/Saving 2021-04-18 22:34:56 +02:00
Marisa P
97b3ea24cd
Merge pull request #86 from AttorneyOnline/messaging-commands
Add /mutepm and /toggleadverts
2021-04-18 15:33:21 -05:00