mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +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.originalIrc = None
|
||||
|
||||
def inFilter(self, irc, msg):
|
||||
def __call__(self, irc, msg):
|
||||
if not isinstance(irc, irclib.Irc):
|
||||
irc = irc.getRealIrc()
|
||||
self.ircstates[irc].addMsg(irc, self.lastmsg[irc])
|
||||
self.lastmsg[irc] = msg
|
||||
return msg
|
||||
callbacks.Privmsg.__call__(self, irc, msg)
|
||||
|
||||
def die(self):
|
||||
for irc in self.abbreviations:
|
||||
|
Loading…
Reference in New Issue
Block a user