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:
BongaTheProto
2022-01-10 23:42:13 -05:00
parent 6b6194fe24
commit b4a1ebeddb
5 changed files with 48 additions and 2 deletions
@@ -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")