From 0386603d9371634b60d01ec8daa1ae5cc87ebedf Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 29 Jul 2012 09:46:53 -0500 Subject: [PATCH] Storycraft: more debugging output --- modules/Storycraft.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/Storycraft.py b/modules/Storycraft.py index cf9d474..b0f7533 100644 --- a/modules/Storycraft.py +++ b/modules/Storycraft.py @@ -269,6 +269,7 @@ class Storycraft(Module): # tell the control channel self.sendmsg(connection, master_channel, '{0:s} created a game of storycraft - do \'!storycraft game {1:d} join\' to take part!'.format(nick, game_id)) + self.log.debug("{0:s} added a new game".format(nick)) return 'Game #{0:d} has been created. When everyone has joined, do \'!storycraft game {0:d} start\''.format(game_id) else: return 'Error creating game.' @@ -298,6 +299,7 @@ class Storycraft(Module): master_channel = settings.master_channel self.sendmsg(connection, master_channel, '{0:s} joined storycraft #{1:d}!'.format(nick, game_id)) + self.log.debug("{0:s} joined game #{1:d}".format(nick, game_id)) return '{0:s}, welcome to the game.'.format(nick) else: return 'Error joining game.' @@ -370,6 +372,7 @@ class Storycraft(Module): # tell the control channel self.sendmsg(connection, master_channel, '{0:s} started storycraft #{1:d}! - first player is {2:s}, do \'!storycraft game {1:d} show line\' when the game is assigned to you.'.format(nick, game_id, player.nick)) + self.log.debug("{0:s} started game #{1:d}".format(nick, game_id)) return 'Game #{0:d} started.'.format(game_id) else: @@ -476,6 +479,7 @@ class Storycraft(Module): settings = self._get_storycraft_settings() master_channel = settings.master_channel + self.log.debug("{0:s} added a line to #{1:d}".format(nick, game_id)) # log output if game.status == 'IN PROGRESS': self.sendmsg(connection, master_channel, '{0:s} added a line to storycraft #{1:d}! - next player is {2:s}'.format(nick, game_id, player.nick))