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
1 changed files with 8 additions and 4 deletions

View File

@ -526,7 +526,11 @@ class IrcObjectProxy(RichReplyMethods):
self.notice = None
self.private = None
self.noLengthCheck = None
self.prefixName = conf.supybot.reply.withNickPrefix()
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()
def evalArgs(self):
while self.counter < len(self.args):