More inteligent !factoid > user handling

This commit is contained in:
Terence Simpson 2008-08-07 06:43:22 +01:00
parent 24fe143332
commit 9660e4e41d

View File

@ -418,8 +418,9 @@ class Encyclopedia(callbacks.Plugin):
ret = self.registryValue('notfoundmsg')
if ret.count('%') == ret.count('%s') == 1:
ret = ret % repr(text)
if not target.startswith('#') and not channel.lower() == irc.nick.lower():
queue(irc, channel, "%s, please see my private message" % target)
if channel.lower() != irc.nick.lower() and target[0] != '#': # not /msg
if target in irc.state.channels[channel].users:
queue(irc, channel, "%s, please see my private message" % target)
if type(ret) != list:
queue(irc, target, retmsg + ret)
else: