Storycraft: tell the master channel when someone joins a game

This commit is contained in:
Brian S. Stephan 2011-01-09 11:13:06 -06:00
parent 797f660a9e
commit 940ed57f2e
1 changed files with 7 additions and 0 deletions

View File

@ -269,6 +269,13 @@ class Storycraft(Module):
if not self._get_player_exists_in_game(game_id, userhost):
# add the player
if self._add_player_to_game(game_id, nick, userhost):
# output results
# get the default settings
settings = self._get_storycraft_settings()
master_channel = settings.master_channel
self.irc.reply(connection, master_channel, '{0:s} joined storycraft #{1:d}!'.format(nick, game_id))
return '{0:s}, welcome to the game.'.format(nick)
else:
return 'Error joining game.'