mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Changed inFilter to __call__, since it doesn't do any filtering.
This commit is contained in:
parent
41d3039c68
commit
b1b00401ed
@ -132,12 +132,12 @@ class Relay(callbacks.Privmsg):
|
|||||||
self.abbreviations = {}
|
self.abbreviations = {}
|
||||||
self.originalIrc = None
|
self.originalIrc = None
|
||||||
|
|
||||||
def inFilter(self, irc, msg):
|
def __call__(self, irc, msg):
|
||||||
if not isinstance(irc, irclib.Irc):
|
if not isinstance(irc, irclib.Irc):
|
||||||
irc = irc.getRealIrc()
|
irc = irc.getRealIrc()
|
||||||
self.ircstates[irc].addMsg(irc, self.lastmsg[irc])
|
self.ircstates[irc].addMsg(irc, self.lastmsg[irc])
|
||||||
self.lastmsg[irc] = msg
|
self.lastmsg[irc] = msg
|
||||||
return msg
|
callbacks.Privmsg.__call__(self, irc, msg)
|
||||||
|
|
||||||
def die(self):
|
def die(self):
|
||||||
for irc in self.abbreviations:
|
for irc in self.abbreviations:
|
||||||
|
Loading…
Reference in New Issue
Block a user