31 Commits

Author SHA1 Message Date
SmArtKar 629ec38e4e Fixes map votes not refreshing the amount of possible choices (#89404)
## About The Pull Request
Closes #89235

## Changelog
🆑
fix: Fixed map votes not refreshing the amount of possible choices
/🆑

---------

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
2025-03-12 16:03:00 -04:00
SkyratBot 95a8694d83 [MIRROR] Fix DMAPI errors regarding validated chat commands [MDB IGNORE] (#20327)
* Fix DMAPI errors regarding validated chat commands (#74495)

Always check the runtime log

* Fix DMAPI errors regarding validated chat commands

---------

Co-authored-by: Jordan Dominion <Cyberboss@users.noreply.github.com>
2023-04-04 18:57:12 -07:00
SkyratBot 2a89a9f3af [MIRROR] Implement TGS DMAPI 6.1.0 features [MDB IGNORE] (#20201)
* Implement TGS DMAPI 6.1.0 features

* Update ticker.dm

* E

* Revert "E"

This reverts commit 23e33ae17d0a2ff58063940ca7c115113c0a02aa.

---------

Co-authored-by: Jordan Dominion <Cyberboss@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2023-03-31 14:50:32 +01:00
SkyratBot 50871407e4 [MIRROR] Add config to validate admin discord commands with discord links and admin ranks [MDB IGNORE] (#19711)
* Add config to validate admin discord commands with discord links and admin ranks (#73818)

This adds a config to secure discord chat commands used by admins.

When enabled it compares the discord id the chat command came from with
the linked discords db to find their ckey, then checks they have the
correct admin rights.

The check automatically self disables if the db is down or if legacy
admin ranks are enabled. (There is no config for discord account linking
or i'd just use that.)

Moved non-admin discord commands out of the admin modules folder and
into the discord modules folder.

Deleted some defunct shit. There was a global list and admin only notify
command that was used by nothing.

There was a whole discord config section that was used by nothing.

* Add config to validate admin discord commands with discord links and admin ranks

---------

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
2023-03-10 02:42:44 +00:00
SkyratBot d583952c2c [MIRROR] Adds a discord bot command version of show-server-revision [MDB IGNORE] (#13120)
* Adds a discord bot command version of show-server-revision (#66338)

* Adds a discord bot command version of show-server-revision

This is to replace `!tgs revision` with something less lame.

* Update chat_commands.dm

* Update chat_commands.dm

* Update chat_commands.dm

* Update chat_commands.dm

* remove unneeded sanic

* Adds a discord bot command version of show-server-revision

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
2022-04-26 15:27:23 +01:00
SkyratBot 024cd5e84b [MIRROR] [s] Fixed admins being able to bypass proccall protections via remote sdql and circuits. (#8321)
* [s] Fixed admins being able to bypass proccall protections via remote sdql and circuits. (#61482)

About The Pull Request

Admins can bypass IsAdminAdvancedProcCall checks by using these methods of proccall because proccall protection is kinda dumb. This has been tweaked so that there is proper proccall protection for these methods of proccall.
Code is hacky, but there's not much of a choice if we want procs to be properly protected from admin proccalls from any sort of remote source. If anyone has a better idea on how to implement this, feel free to hit me up.

We need a special global mob that handles proccalls from sources that may not have a usr/client to refer back to. IsAdminAdvancedProcCall() relies usr being defined, so if no usr is defined, then this will always return false. This has been adjusted so that proccalls without a usr/client to refer back to will instead set usr to this special mob, which will then let the IsAdminAdvancedProcCall() return true by comparing whether usr == this special global mob.
Why It's Good For The Game

Admins can no longer bypass IsAdminAdvancedProcCall checks.
Changelog

cl
admin: Admins are no longer able to bypass proccall protections using remote methods of proccalling.
/cl

* [s] Fixed admins being able to bypass proccall protections via remote sdql and circuits.

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
2021-09-23 01:45:33 +01:00
SkyratBot 04abb98894 [MIRROR] Remove a bunch of old gamemode code (#6025)
* Remove a bunch of old gamemode code

* Mirror!

* Woopsie, modular game modes!

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: Funce <funce.973@gmail.com>
2021-06-01 12:36:59 +12:00
SkyratBot 6d20a82bd5 [MIRROR] Return "Message Successful" from ahelp chat cmd (#4209)
* Return "Message Successful" from `ahelp` chat cmd (#57725)

* Return "Message Successful" from `ahelp` chat cmd

Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>
2021-03-17 02:37:20 +00:00
SkyratBot b332b46b65 [MIRROR] Remove hideous inline tab indentation, and bans it in contributing guidelines (#3394)
* Remove hideous inline tab indentation, and bans it in contributing guidelines

* a

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
2021-02-15 15:32:02 +00:00
jdawg1290 62676e72a8 Force LF line endings with gitattributes and convert repo (#52266)
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2020-07-16 03:02:40 +03:00
Jordan Brown c3d0a6dd1c Don't throttle TGS commands (#51292) 2020-05-27 15:46:34 +08:00
Bobbahbrown 0d7ef73b17 Refactors References to IRC to be TGS (#47954)
* TGS updates round 1

* TGS updates round 2
2019-11-30 03:59:42 -08:00
AffectedArc07 c4e75bc40b [READY] SSdiscord and Round Notifications (#44231)
* Notify System

* V2

* Adds a hint

* Stoned fixes round 1

* Use grammar wells I can

* This didnt work

* I wish you could test on TGS without committing

* Jordie fixes round 1

* oops

* This took way longer than it should have taken

* Adds in endnotify for serverops

* Spacing
2019-06-30 00:43:25 +10:00
Jordan Brown 1fc1148a5a Fixed round end notify chat command 2018-07-14 03:04:27 -04:00
Jordan Brown cf7e8aa9ec Qdels queries, adds sleep safety checks, DBcore checks for leaks (#38363)
* Qdels all queries, adds sleep handling

* DB Core messages admins about undeleted queries

* Compile fixes. Adds missing set waitfor

* Remove world/New shennanigans. Add DBQuery/BlockingExecute()

* Less spammy notifications to admins about undeleted queries

* Increase dbcore fire time to 1 minute

* Upgrade undeleted query warning

* Better place of death

* Fix build

* Remove BlockingExecute, see BSQL PR for why

* Yep, missed that one.

* Psyche, that's the WRONG QUERY!!
2018-06-18 22:48:35 +03:00
Jordan Brown 575d098944 Update DMAPI to version 3.2.1.0 (#37429)
This is primarily a compatibility layer that enables both forward and backward compatibility for all past and future APIs based on the detected running TGS version. It also bundles all it's includes to make future upgrades not have to modify the dme, heck, could even use a submodule if it wanted (not happening). No other changes necessary.

There's an upcoming event system and new chat management functions. Check them out here: https://github.com/tgstation/tgstation-server/blob/303448457e1529c900fa183a8b3c7f2e5459acf1/DMAPI/tgs.dm

Also added /datum/proc/CanProcCall()
2018-05-09 14:33:07 +12:00
Jordan Brown f41f73e638 Revert the notify command not being admin only 2018-02-19 11:17:30 -05:00
Shadowlight213 68deef263a Removed admin requirement for the notify chat command (#35501) 2018-02-11 13:44:44 -05:00
kevinz000 175e7da98d Fixes chat SDQL 2017-12-21 05:08:40 -08:00
oranges 5d07df08ea Merge pull request #33513 from tgstation/Cyberboss-patch-2
ahelp chat command is silent on success
2017-12-16 11:59:47 +13:00
Jordan Brown 59abcb8dc3 Adds SDQL chat command (#33366)
Allow's calling SDQL from bots supporting the CHAT system API
2017-12-15 10:43:54 +13:00
Jordan Brown 4a56441b01 ahelp chat command is silent on success 2017-12-13 15:00:52 -05:00
kevinz000 0cd93748d6 Adds a chat command to reload admins in case someone locks themselves out. (#33458)
* Update chat_commands.dm

* skype
2017-12-12 13:56:00 -05:00
Jordan Brown 2a3f954b83 ahelp command can now accept a ticket # (#32970)
* `ahelp` command can now accept a ticket #

As opposed to only a ckey

* Fix bad invocation of TicketByID()

* Use correct ahelp typepath
2017-11-22 13:38:08 -05:00
Jordan Brown 11d5be6fa8 Revert "Adds 'round' chat command" (#32421) 2017-11-05 16:37:49 -05:00
Jordan Brown b76ad91c93 Adds 'round' chat command 2017-11-02 17:41:47 -04:00
Jordan Brown 0193bdd668 Datumizes world/Topic (#31543)
* Datumizes world/Topic

* active_players requires comms_key
2017-10-12 14:46:51 +13:00
oranges 0ac005aeb4 Merge pull request #31127 from Cyberboss/notify_command
Chat command to notify admins when the round ends
2017-10-02 15:12:13 +13:00
Jordan Brown 4d1f3b5d9f Removes irccheck admin restriction 2017-09-29 16:27:32 -04:00
Cyberboss 9db3ba0be0 Chat command to notify admins when the round ends 2017-09-29 13:26:40 -04:00
Jordan Brown 62f788fbc6 Server tools API v3.1 (#31000)
* New API for service communication

* Safer this way

* Gives the game the ability to kill itself

* tick_lag

* Sanity check

* Updates comment

* Formalization of the server tools API

* Fixes, finishes, and cleanup

* Remove unecessary scoping

* Compile fixes

* Didn't Ctrl+S

* Reimplement chat commands

* Fixup

* Required parameters

* Fax

* Testing

* Fix ON_TOPIC

* The more defines the more better

* That's bass ackwards

* Fix tgs2

* Fuck it, call him pichael

* Do this

* No, we only use the modern methods now

* Remove tgs2 relay support

* Remove kebab

* Kill kill kill

* This is back baby

* Missed a GLOB

* Remove DownloadPRDetails()

* Cache custom commands by name

* Adds "notify" chat command

* Use the official API

* Fix API misuse

* Readme licensing memes

* Fix API

* Moves chat new game announcement to when the API is confirmed compatible

* Add TGS3.json

* Fix the input options

* Removes notify command
2017-09-29 16:19:50 +13:00