Add hability for admins to cancel a started fight

This commit is contained in:
wr34k 2018-07-03 14:13:56 +02:00
parent 0d5686509d
commit 3cac7225e3

View File

@ -54,6 +54,11 @@ class IrcCommands(object):
else:
self.IRC.raw(" ".join(args))
if cmd == 'cancel' and self.fight.state != 'inactive':
self.IRC.privmsg(chan, "Fight cancelled.")
self.fight.state = 'inactive'
self.fight.fighters = []
if cmd == 'status':
self.fight.getStatus(chan)