mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
YABF
This commit is contained in:
parent
9f96715768
commit
57493551ff
@ -254,6 +254,9 @@ class Words(callbacks.Privmsg, configurable.Mixin):
|
|||||||
"""
|
"""
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
game = self.games[channel]
|
game = self.games[channel]
|
||||||
|
if not game.gameOn:
|
||||||
|
irc.error(msg, 'There is no hangman game going on right now.')
|
||||||
|
return
|
||||||
irc.reply(msg, '%s %s' % (game.prefix, ' '.join(game.unused)))
|
irc.reply(msg, '%s %s' % (game.prefix, ' '.join(game.unused)))
|
||||||
|
|
||||||
def hangman(self, irc, msg, args):
|
def hangman(self, irc, msg, args):
|
||||||
@ -290,7 +293,7 @@ class Words(callbacks.Privmsg, configurable.Mixin):
|
|||||||
self.hangman(irc, msg, args)
|
self.hangman(irc, msg, args)
|
||||||
else:
|
else:
|
||||||
irc.error(msg, 'Sorry, there is already a game going on. '
|
irc.error(msg, 'Sorry, there is already a game going on. '
|
||||||
'%s left before timeout.' % utils.nItems('seconds',
|
'%s left before timeout.' % utils.nItems('second',
|
||||||
int(game.timeout - secondsEllapsed)))
|
int(game.timeout - secondsEllapsed)))
|
||||||
|
|
||||||
def guess(self, irc, msg, args):
|
def guess(self, irc, msg, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user