Commit Graph

134 Commits

Author SHA1 Message Date
scatterflower
f01db9b22e
Merge pull request #120 from Salanto/add-asset-packet
Add asset packet + network encoding
2021-05-11 08:44:09 -05:00
in1tiate
5193e11401 add bypass locks permission 2021-05-05 09:32:16 -05:00
Salanto
9b27774fd3 Update packets.cpp
Shouldn't send it if its garbage data
2021-05-05 14:33:57 +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
MangosArentLiterature
fb6692d69d Merge branch 'master' into login-changes 2021-05-01 19:22:06 -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
Denton Poss
6d31a28325
Merge pull request #113 from AttorneyOnline/fix-force-immediate
Fix force_immediate
2021-05-01 10:06:58 -05:00
in1tiate
05201ac82d woops, thats not how that works 2021-04-30 23:05:18 -05:00
in1tiate
b6f4982643 validate ic packets with a cid of -1 2021-04-30 23:01:52 -05:00
in1tiate
0e05ed63f2 add firstperson cid check 2021-04-30 23:01:12 -05:00
MangosArentLiterature
b48ac1873c Fix force_immediate 2021-04-29 22:54:54 -05:00
MangosArentLiterature
4ca54e8761 Fix dezalgo
Changes how dezalgo works. Still filters zalgo text without breaking languages. Removes zalgo tolerance because it's not really necessary with this system.
2021-04-29 22:13:06 -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
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
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
Marisa P
3e490252be
Merge pull request #100 from Salanto/Fix-Woopsie2
Fix Server Crash when deleting statements during recording
2021-04-21 05:51:49 -05:00
MangosArentLiterature
1b7c53bc01
Merge branch 'master' into master 2021-04-20 19:32:36 -05:00
Salanto
5e05326537 Fix Server Crash when deleting statements during recording 2021-04-20 23:09:16 +02: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
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
in1tiate
7ae4f95e12 expose ban ids to /bans and BD 2021-04-18 18:49:06 -05:00
Marisa P
c70d2afbeb
Merge pull request #78 from AttorneyOnline/fix-ooc-mute
add missing commands to the command table
2021-04-17 20:42:16 -05:00
MangosArentLiterature
b99660d9c3 Decode MS packet before testimony recorder regex
- Fixes an issue with the testimony recorder checking for >[statement], where due to AO encoding, special characters would improperly match the regex. For example, "%[statement]" would become "<percent>[statement]", thus matching against >[statement]. This commit decodes those characters first.

- Adds AOClient::decodeMessage() for decoding a QString.
2021-04-17 18:45:05 -05:00
MangosArentLiterature
96407ad4bd Add /blockdj and /unblockdj
- More commands that never got added to the table.
- Also fixes /blockdj incorrectly blocking a client from changing areas.
- Checks if a client is DJ blocked when using /play
2021-04-16 13:22:42 -05:00
in1tiate
38d73d9228 cleanup 2021-04-15 14:10:53 -05:00
in1tiate
b1dfeec8f5 euthanize morton, code cleanup 2021-04-15 13:58:41 -05:00
in1tiate
122e993a8b condense some overly long code (ty marisa) 2021-04-15 13:49:27 -05:00
in1tiate
c9700f236f more cleanly handle empty input, snip debug call 2021-04-15 10:26:46 -05:00
in1tiate
12bba40a99 implement case announcements 2021-04-15 10:25:25 -05:00
in1tiate
6ed4909088 add ability to force immediate text processing 2021-04-14 16:32:24 -05:00
scatterflower
853e6e3ff4
Merge pull request #60 from Salanto/Testimony-Playback
Add testimony playback
2021-04-14 14:11:10 -05:00
MangosArentLiterature
8e4f8c31c7 Add /shake
- also adds /unshake
2021-04-14 02:09:58 -05:00
Salanto
fb7ad8c25f
Merge branch 'master' into Testimony-Playback 2021-04-14 09:03:28 +02:00
MangosArentLiterature
9b54a44a52 Add /disemvowel 2021-04-14 01:45:26 -05:00
MangosArentLiterature
7d7f25f4cb Merge branch 'master' into joke-mod-commands 2021-04-14 00:47:27 -05:00
MangosArentLiterature
a62e0e82a2 set pos to "wit" before sending packet during testimony playback 2021-04-13 18:40:05 -05:00
Salanto
1aa5361fe9 Simple pos filter 2021-04-14 00:58:00 +02:00
MangosArentLiterature
2a08f96386 Add >[statement] support
- Adds a regex to detect >[statement]
- Also puts titles on a new line like AA
2021-04-13 17:43:23 -05:00
MangosArentLiterature
c2d1286e27 Merge branch 'master' into config-loading 2021-04-13 15:53:24 -05:00
Salanto
4bc53ab61c Make basic system functionality actually work
Reminder to add docs
2021-04-12 22:42:02 +02:00
Salanto
15d4deebd3 At least make the intro message work 2021-04-12 00:20:10 +02:00