Commit Graph

267 Commits

Author SHA1 Message Date
MangosArentLiterature
c2d1286e27 Merge branch 'master' into config-loading 2021-04-13 15:53:24 -05: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
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
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
MangosArentLiterature
b1c00cb46f Add /8ball 2021-04-04 16:16:37 -05:00
scatterflower
9aab9f30bc
Merge pull request #53 from MangosArentLiterature/logger
Add configurable logging options
2021-04-04 03:20:07 -05:00
MangosArentLiterature
e3e3315da6 remove raiden 2021-04-04 03:16:19 -05:00
MangosArentLiterature
d51203e634 Add configurable logging options 2021-04-04 02:47:36 -05:00
in1tiate
dfcc68817a
Merge branch 'master' into notecards 2021-04-04 02:04:42 -05:00
scatterflower
b12cec09da increment ver string and fix off by one out of bounds char selection 2021-04-03 23:57:45 -05:00
MangosArentLiterature
6511e13585 Save server logs to logs/ instead of config/ 2021-04-03 20:35:21 -05:00
scatterflower
428053934a
Merge pull request #37 from Salanto/evidence_swap
Add /evidence_swap
2021-04-03 17:18:00 -05:00
scatterflower
99f8695b60
Merge pull request #52 from MangosArentLiterature/auth-type-checking
Add checks to ensure auth_type is set correctly in config_manager.cpp and commands.cpp
2021-04-03 17:08:14 -05:00
MangosArentLiterature
febaf21c0d Check for correct auth_type in config.ini
When initializing config.ini, ensure auth_type is set to a recognzied value.
2021-04-03 17:00:45 -05:00
MangosArentLiterature
f09adf4901 check for valid auth_type
Actually check if auth_type is set to advanced, otherwise warn about invalid settings
2021-04-03 16:24:34 -05:00
in1tiate
57b32819e7 fix showname being set to " " when it shouldn't 2021-04-03 13:01:34 -05:00
Salanto
026c9e778e Add missing bracket
That closing bracket is kinda important
2021-04-03 17:11:58 +02:00
Salanto
013a7ecfa1
Merge branch 'master' into evidence_swap 2021-04-03 17:05:54 +02:00
scatterflower
737f2f102e update ver string 2021-04-03 03:49:36 -05:00
scatterflower
5e79cf3f9f allow blank showname 2021-04-03 03:29:52 -05:00
scatterflower
953e9a50c7 fix ipids not being generated 2021-04-03 03:10:06 -05:00
scatterflower
7f3d077710
Merge pull request #41 from AttorneyOnline/muties-for-cuties
Add various mute commands, plus a system for gently chastising users for being muted
2021-04-02 11:49:32 -05:00
scatterflower
f0926f640c
Merge branch 'master' into iniswap-pair 2021-04-02 11:48:29 -05:00
scatterflower
742983c68c
Merge pull request #44 from Salanto/Fix-ICColor
Fix-ICColor
2021-04-02 11:47:14 -05:00
in1tiate
ca7fe90958 check the other client's pos against ours before pairing 2021-04-01 13:14:14 -05:00
Salanto
43b12ea5aa Update packets.cpp
The AO Client supports up to twelve colors by default.
2021-03-31 19:16:34 +02:00