From 6aacef4cf4d26ba0bf0a7b54e60a5d41defeec47 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 26 Mar 2003 10:12:06 +0000 Subject: [PATCH] Fixed FunCommands.lastfrom actually use channel argument --- plugins/FunCommands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index 23c0271cd..001efcca2 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -62,7 +62,6 @@ from baseplugin import * import os import gc import re -import sys import new import md5 import sha @@ -383,7 +382,9 @@ class FunCommands(callbacks.Privmsg): channel = privmsgs.getChannel(msg, args) nick = privmsgs.getArgs(args) for m in reviter(irc.state.history): - if m.command == 'PRIVMSG' and m.nick == nick: + if m.command == 'PRIVMSG' and \ + m.nick == nick and \ + m.args[0] == channel: if ircmsgs.isAction(m): irc.reply(msg, '* %s %s' % (nick, ircmsgs.unAction(m))) else: