mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Fixed FunCommands.lastfrom actually use channel argument
This commit is contained in:
parent
1f88cd4c03
commit
6aacef4cf4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user