Glob2Chan: don't hilight @ask4game or @ask4help caller

master
Valentin Lorentz 2010-12-21 09:18:03 +01:00
parent 80e6f3ec5a
commit 7874df8b83
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class Glob2Chan(callbacks.Plugin):
return
online = irc.state.channels[channel].users
gamers = self.registryValue('gamers')
onlineGamers = [x for x in online if x in gamers]
onlineGamers = [x for x in online if x in gamers and x != msg.nick]
if len(onlineGamers) == 0:
irc.reply('Sorry, no registered gamer is online')
return
@ -136,7 +136,7 @@ class Glob2Chan(callbacks.Plugin):
return
online = irc.state.channels[channel].users
helpers = self.registryValue('helpers')
onlineHelpers = [x for x in online if x in helpers]
onlineHelpers = [x for x in online if x in helpers and x != msg.nick]
if len(onlineHelpers) == 0:
irc.reply('Sorry, no registered helper is online')
return