mirror of
https://github.com/wr34k/IRCUFC.git
synced 2024-11-21 15:06:38 +00:00
Add hability for admins to cancel a started fight
This commit is contained in:
parent
0d5686509d
commit
3cac7225e3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user