Fix bug #1030367, supybot.replywithNickPrefix doesn't obey channel value

This commit is contained in:
James Vega 2004-09-21 01:32:26 +00:00
parent 535f4a164f
commit 781ba32793

View File

@ -526,6 +526,10 @@ class IrcObjectProxy(RichReplyMethods):
self.notice = None self.notice = None
self.private = None self.private = None
self.noLengthCheck = None self.noLengthCheck = None
if ircutils.isChannel(self.msg.args[0]):
self.prefixName = conf.get(conf.supybot.reply.withNickPrefix,
self.msg.args[0])
else:
self.prefixName = conf.supybot.reply.withNickPrefix() self.prefixName = conf.supybot.reply.withNickPrefix()
def evalArgs(self): def evalArgs(self):