Storycraft: tell the master channel when someone joins a game
This commit is contained in:
parent
797f660a9e
commit
940ed57f2e
|
@ -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.'
|
||||
|
|
Loading…
Reference in New Issue