From f4d69c90d446ac564a32d9c749c40fe9d6c45dd8 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 17 Feb 2011 10:07:29 -0600 Subject: [PATCH] Alias: don't crash when doing alias info output because i forgot to update the reply calls. --- DrBotIRC.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DrBotIRC.py b/DrBotIRC.py index c5cfee6..c302845 100644 --- a/DrBotIRC.py +++ b/DrBotIRC.py @@ -158,25 +158,25 @@ class DrBotIRC(irclib.IRC): self.config.set('Alias', whats[2], ' '.join(whats[3:])) replystr = 'Added alias ' + whats[2] + '.' - return self.reply(connection, replypath, replystr) + return self.reply(connection, event, replystr) if whats[0] == '!alias' and whats[1] == 'remove' and len(whats) >= 3: if not self.config.has_section('Alias'): self.config.add_section('Alias') if self.config.remove_option('Alias', whats[2]): replystr = 'Removed alias ' + whats[2] + '.' - return self.reply(connection, replypath, replystr) + return self.reply(connection, event, replystr) elif whats[0] == '!alias' and whats[1] == 'list': try: if len(whats) > 2: alias = self.config.get('Alias', whats[2]) - return self.reply(connection, replypath, alias) + return self.reply(connection, event, alias) else: alist = self.config.options('Alias') alist.remove('debug') alist.sort() liststr = ', '.join(alist) - return self.reply(connection, replypath, liststr) + return self.reply(connection, event, liststr) except NoSectionError: pass except NoOptionError: pass except NoSectionError: pass