fix game deletion, avoid keeping track of old game

This commit is contained in:
Simone Baracchi 2020-03-15 14:06:10 +01:00
parent 7ad1ab246a
commit 853a188c1d
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ def newgame(handler, name, template):
def delgame(handler):
db.del_game(handler.dbc, handler.group.gameid)
handler.send('GG, humans.')
handler.group = None
@add_command('showgame')
@need_gameid(allowexisting=True, errormessage='No game found.')