mirror of
https://github.com/wr34k/IRCUFC.git
synced 2024-11-22 07:26:39 +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:
|
else:
|
||||||
self.IRC.raw(" ".join(args))
|
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':
|
if cmd == 'status':
|
||||||
self.fight.getStatus(chan)
|
self.fight.getStatus(chan)
|
||||||
|
Loading…
Reference in New Issue
Block a user