Make !refreshdb expire stasis and tempbans
It was slightly annoying that there was no way to do this via a command. Should also have these expire if someone !quits to end a game, someone should work on that :)
This commit is contained in:
parent
6b9453afa1
commit
4e8f083dc2
@ -402,7 +402,9 @@ def sync_modes(cli):
|
||||
@cmd("refreshdb", flag="m", pm=True)
|
||||
def refreshdb(cli, nick, chan, rest):
|
||||
"""Updates our tracking vars to the current db state."""
|
||||
db.expire_stasis()
|
||||
db.init_vars()
|
||||
expire_tempbans(cli)
|
||||
reply(cli, nick, chan, "Done.")
|
||||
|
||||
@cmd("fdie", "fbye", flag="D", pm=True)
|
||||
|
Loading…
Reference in New Issue
Block a user