mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-23 20:56:47 +01:00
why won't it just work
this is for when people can't get in after registering for who knows what fucking reason
This commit is contained in:
@@ -34,3 +34,13 @@
|
||||
log_admin("[sender.friendly_name] has removed [params] from the current round's discord bypass list.")
|
||||
message_admins("[sender.friendly_name] has removed [params] from the current round's discord bypass list.")
|
||||
return "[params] has been removed from the current round's discord bypass list."
|
||||
|
||||
/datum/tgs_chat_command/discordnulls
|
||||
name = "discordnulls"
|
||||
help_text = "Deletes all rows in the database where discord_id is NULL."
|
||||
admin_only = TRUE
|
||||
|
||||
/datum/tgs_chat_command/discordnulls/Run(datum/tgs_chat_user/sender, params)
|
||||
log_admin("[sender.friendly_name] has attempted to delete the NULLs from the discord database.")
|
||||
message_admins("[sender.friendly_name] has attempted to delete the NULLs from the discord database.")
|
||||
return "[SSdiscord.delete_nulls() ? "NULL rows deleted successfully" : "There was a problem while deleting NULLs"]"
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/client/proc/discordnulls()
|
||||
set category = "Debug"
|
||||
set name = "Delete Discord Nulls"
|
||||
set desc = "Delete rows in the database where discord_id is NULL."
|
||||
if(!SSdiscord)
|
||||
return
|
||||
SSdiscord.delete_nulls()
|
||||
message_admins("[key_name(usr)] has attempted to clear NULLs from the discord database")
|
||||
log_admin("[key_name(usr)] has attempted to clear NULLs from the discord database")
|
||||
Reference in New Issue
Block a user