Commit Graph

396 Commits

Author SHA1 Message Date
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
MangosArentLiterature
760d46b206 add /charcurse and /uncharcurse
this code makes me want to die. please end my suffering.
2021-04-18 14:45:53 -05:00
Salanto
5eabcc191e Add /testimony 2021-04-18 20:52:27 +02:00
Salanto
73cd8f1eb9 Account for older server settings 2021-04-18 13:42:08 +02:00
MangosArentLiterature
bcaf9a1f29 Merge branch 'master' into messaging-commands 2021-04-17 22:34:31 -05:00
MangosArentLiterature
91bfc4a5c9 Fix /switch and /randomchar
Also adds a check to /randomchar to ensure we don't select a taken character.
2021-04-17 22:13:56 -05:00
Salanto
558dcc3378 Merge remote-tracking branch 'upstream/master' into Testimony-Loading/Saving 2021-04-18 04:03:07 +02:00
Salanto
3c5659af22 Add testimony loading and saving 2021-04-18 03:59:12 +02: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
Marisa P
068f605c64
Merge pull request #79 from AttorneyOnline/command-split
Move cmdAfk to messaging category
2021-04-17 20:41:50 -05:00
Marisa P
b3872aa888
Merge pull request #81 from AttorneyOnline/testimony-decoding
Decode MS packet before testimony recorder regex
2021-04-17 20:41:24 -05:00
Marisa P
5be1f821db
Merge pull request #80 from AttorneyOnline/uncm-player
Allow moderators to uncm other clients
2021-04-17 20:40:59 -05:00
MangosArentLiterature
522c9fb393 ensure the advertiser actually exists before connecting the reload signal/slot 2021-04-17 19:03:20 -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
e52d85c01a Add /toggleadverts 2021-04-17 15:20:28 -05:00
MangosArentLiterature
388ad345a5 Add /mutepm 2021-04-17 14:15:04 -05:00
MangosArentLiterature
b7f8f78690 Allow moderators to uncm other clients
- Adds "UNCM" permissions for uncming
2021-04-16 18:25:12 -05:00
MangosArentLiterature
67f7acc34a Move cmdAfk to messaging category
cmdAfk is a command that changes the clients status to AFK. As such, it belongs under the messaging category, which includes commands that handle a clients self-management.
2021-04-16 13:57:33 -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
MangosArentLiterature
466089ad84 update readme and /about
this feels weird to do
2021-04-15 23:40:47 -05:00
MangosArentLiterature
ea50100acf Sort out new commands from master, delete commands.cpp
🦀 🦀
2021-04-15 18:13:15 -05:00
MangosArentLiterature
577e2b5095 Revert "Revert "Merge branch 'master' into command-split""
This reverts commit 58f2d1e2b7.
2021-04-15 18:01:51 -05:00
MangosArentLiterature
58f2d1e2b7 Revert "Merge branch 'master' into command-split"
This reverts commit b3d170c019, reversing
changes made to 885de71417.
2021-04-15 18:00:04 -05:00
MangosArentLiterature
b3d170c019 Merge branch 'master' into command-split 2021-04-15 17:57:21 -05:00
MangosArentLiterature
885de71417 Split up commands.cpp
the beast has been vanquished
2021-04-15 17:55:15 -05:00
in1tiate
93c4f19bfb
Merge branch 'master' into afk 2021-04-15 14:30:20 -05:00
Marisa P
59fb56bd61
Merge pull request #74 from AttorneyOnline/caseannouncements
Implement case announcements
2021-04-15 14:22:50 -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
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
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
1a7c23f404 simplify /afk to just set is_afk to true
previously it would toggle is_afk, but because
sending the command sends a CT packet, you could
never toggle AFK off with /afk because it would have
been toggled off due to activity immediately prior to
using it
2021-04-15 06:49:09 -05:00
in1tiate
9c6fa22ee5 fix being told youre afk twice if you use /afk before the timer runs out 2021-04-15 06:48:07 -05:00
in1tiate
a32b33d957 even more elegant repeat afk fix 2021-04-15 06:44:14 -05:00
in1tiate
96f2204b79 more elegantly fix repeated AFKing 2021-04-15 06:42:14 -05:00
in1tiate
42ca1d2779 fix AFK message being sent repeatedly 2021-04-15 06:40:07 -05:00
in1tiate
f0412e0e05 add AFK system 2021-04-15 06:34:31 -05:00
Marisa P
4c5c40b497
Merge pull request #71 from AttorneyOnline/nonint_pres
Add ability to force immediate text processing (/force_noint_pres) and command to toggle iniswapping (/allow_iniswap)
2021-04-15 01:01:06 -05:00
MangosArentLiterature
78c51cad41 Fix cmdAddStatement
- Fix cmdAddStatement not being in the command table
- Fix add statement not correctly setting added statements to green text
2021-04-15 00:59:22 -05:00
MangosArentLiterature
7dca20efe5 Splitting commands part 1, authentication 2021-04-15 00:49:57 -05:00
in1tiate
461c4f9d6e add iniswap toggle command 2021-04-14 16:38:38 -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
Salanto
d197f5d619 Fix compile error for real this time. 2021-04-14 18:00:20 +02:00
Salanto
2b04075d33
Try to fix compile error with Github Editor
I hate this.
2021-04-14 09:57:11 +02: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
Salanto
529a14bf1b
Allow delete without examination 2021-04-14 08:54:20 +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
scatterflower
e51fc8de37
Merge pull request #68 from AttorneyOnline/8ball
Minor fix to /8ball
2021-04-14 00:30:44 -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
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
MangosArentLiterature
c2d1286e27 Merge branch 'master' into config-loading 2021-04-13 15:53:24 -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
Salanto
7eaf129b8b Fix compile error 2021-04-12 22:47:02 +02: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
Salanto
f4426fbf34
Merge branch 'master' into Testimony-Playback 2021-04-11 22:33:20 +02:00
Salanto
6639a39b0c Butchering any sanity of the IC Packet handling one commit at a time 2021-04-11 22:32:37 +02:00
scatterflower
3ef7901b6d
Merge pull request #63 from AttorneyOnline/mod-commands
Add /judgelog and /baninfo commands
2021-04-10 00:44:59 -05:00
MangosArentLiterature
a2013aa32e Cleanup getBanInfo and cmdJudgeLog
- Removes unneeded parentheses from AOClient::cmdJudgeLog()
- Removes duplicate code in DBManager::getBanInfo()
2021-04-10 00:43:08 -05:00
scatterflower
08a8e63d86 fix stupid crash 2021-04-10 00:42:06 -05:00
scatterflower
74f171f139
Merge pull request #67 from AttorneyOnline/tsulike-antispam
Use per-area antispam rather than per-client, allow for multiple subsequent blankposts
2021-04-10 00:35:29 -05:00
scatterflower
8a5be8bc2c fix timer 2021-04-09 22:51:00 -05: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
scatterflower
2a2171dc42 clean up timer command, fix crash 2021-04-09 15:32:17 -05:00
MangosArentLiterature
43ce86ff12 Add /ungimp 2021-04-09 15:07:09 -05:00
MangosArentLiterature
9c4a1a99a5 Minor tweak to /8ball
clean up that code and fix the index
2021-04-09 03:24:54 -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
in1tiate
a621ae6113 alter antispam to function more like tsu3 2021-04-09 03:05:15 -05:00
MangosArentLiterature
cff51674bb Update /8ball and AOClient::getReprimands to use the new command config loader 2021-04-08 22:51:51 -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
c7888d777c woops change that var name too 2021-04-08 14:09:33 -05:00
scatterflower
18597cb4a3 fix incorrectly setting char_id when argument is invalid 2021-04-08 14:06:27 -05:00
MangosArentLiterature
43d73f7b91 Fix current char being removed from the char_taken list too early 2021-04-08 14:02:59 -05:00
Salanto
07ec9f9d1c
Merge branch 'master' into Testimony-Playback 2021-04-08 00:05:12 +02:00
Salanto
5c3c92c603 Some basic layout on how to approach this 2021-04-08 00:02:30 +02:00
Salanto
cfdee9b56e I slowly regret ever thinking I could do this Part 1 2021-04-07 23:52:45 +02:00
MangosArentLiterature
bd0efe40f6 Merge branch 'master' into mod-commands 2021-04-07 15:30:45 -05:00
MangosArentLiterature
2d793f4a99 Add /baninfo command
- Adds getBanInfo() to db_manager, which queries bans by banid, hdid, or ipid
2021-04-07 15:26:14 -05:00
MangosArentLiterature
ea0df75a88 Merge branch 'master' into mod-commands 2021-04-07 00:45:56 -05:00
scatterflower
5f405c20bc
Merge pull request #57 from Salanto/allow_blankposting-command
Add allow_blankposting-command
2021-04-07 00:31:15 -05:00
MangosArentLiterature
ea131504e7 Prevent additive text between different characters. 2021-04-06 23:45:47 -05:00
MangosArentLiterature
eeab77c136 Add a single blankspace to the front of additive messages.
in1t basically wrote this code. Currently Akashi trims blankspaces, making additive text appear.like so. This remedies it by adding a single blank space to the front of additive messages.
2021-04-06 22:05:04 -05:00
MangosArentLiterature
735f886d15 Fix filtering out IPIDs for CM users 2021-04-06 15:22:36 -05:00
MangosArentLiterature
d73a7292fc Add a check to /judgelog to only send IPIDs to users with appropriate permissions 2021-04-06 13:50:06 -05:00
MangosArentLiterature
d98eedd6e9 Add /judgelog command
Adds a judgelog to each area and a helper function to update it. Adds /judgelog to retrieve it.
2021-04-06 00:41:28 -05:00
Salanto
c841f74196 Add allow_blankposting-command
+ update sample config
2021-04-05 23:18:08 +02:00
MangosArentLiterature
0f4173bcea
Merge branch 'master' into 8ball 2021-04-05 12:18:43 -05:00
Salanto
e1c578b8ee Add lm-command
Mango was disappointed when they learned I already did this several days ago and forgot about it.
2021-04-05 03:02:38 +02:00
MangosArentLiterature
272719f245 Fix /8ball output 2021-04-04 17:31:02 -05:00