Glob2Chan: Update welcome message to display number of users on IRC.

master
Valentin Lorentz 2013-02-23 16:34:37 +00:00
parent e7651d7d41
commit 6b1e9c01b1
1 changed files with 5 additions and 5 deletions

View File

@ -93,11 +93,11 @@ class Glob2Chan(callbacks.Plugin):
self._users.update({msg.nick: msg.prefix.split('@')[1]})
if nick.startswith('[YOG]') and \
nick not in self.registryValue('nowelcome').split(' '):
irc.queueMsg(ircmsgs.privmsg(nick, 'Hi %s, welcome to the '
'globulation online game room. Those monitoring this room '
'via IRC may awaken and challenge you to a game, if you type '
'their name as given in the room participant window.' %
nick))
irc.queueMsg(ircmsgs.privmsg(nick, ('Hi %s, welcome to the '
'globulation online game room. There are currently %i '
'people connected via IRC, they may awaken and challenge '
'you to a game.') %
(nick, len(irc.state.channels[channel].users))))
if nick.startswith('[YOG]'):
irc.queueMsg(ircmsgs.IrcMsg(s='WHOIS %s' % nick))