From 3287b20c431fab56cf39a24aa4e8a1d1e68bf900 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Tue, 10 Apr 2018 10:01:49 -0700 Subject: [PATCH] fixes issue with bot not responding to private messages --- pinhook/bot.py | 6 ++++-- setup.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pinhook/bot.py b/pinhook/bot.py index 75afcc6..70e5265 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -131,8 +131,10 @@ class Bot(irc.bot.SingleServerIRCBot): text = e.arguments[0] if e.target == self.bot_nick: chan = nick + nick_list = [nick] else: chan = e.target + nick_list = list(self.channels[chan].users()) if e.type == 'action': cmd = '' else: @@ -166,7 +168,7 @@ class Bot(irc.bot.SingleServerIRCBot): output = pinhook.plugin.cmds[cmd](self.Message( channel=chan, cmd=cmd, - nick_list=list(self.channels[chan].users()), + nick_list=nick_list, nick=nick, arg=arg, botnick=self.bot_nick, @@ -183,7 +185,7 @@ class Bot(irc.bot.SingleServerIRCBot): output = pinhook.plugin.lstnrs[lstnr](self.Message( channel=chan, text=text, - nick_list=list(self.channels[chan].users()), + nick_list=nick_list, nick=nick, botnick=self.bot_nick, ops=self.ops, diff --git a/setup.py b/setup.py index 028a977..55880b0 100755 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ class UploadCommand(Command): # Where the magic happens: setup( name=NAME, - version='1.4.2', + version='1.4.3', description=DESCRIPTION, long_description=long_description, author=AUTHOR,