mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +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 os
|
||||||
import gc
|
import gc
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
import new
|
import new
|
||||||
import md5
|
import md5
|
||||||
import sha
|
import sha
|
||||||
@ -383,7 +382,9 @@ class FunCommands(callbacks.Privmsg):
|
|||||||
channel = privmsgs.getChannel(msg, args)
|
channel = privmsgs.getChannel(msg, args)
|
||||||
nick = privmsgs.getArgs(args)
|
nick = privmsgs.getArgs(args)
|
||||||
for m in reviter(irc.state.history):
|
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):
|
if ircmsgs.isAction(m):
|
||||||
irc.reply(msg, '* %s %s' % (nick, ircmsgs.unAction(m)))
|
irc.reply(msg, '* %s %s' % (nick, ircmsgs.unAction(m)))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user