mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-20 09:04:36 +01:00
Let's try this location for our placement of a dynamic channel.
This commit is contained in:
parent
3b2ef3d88f
commit
bc5e7de336
@ -1081,10 +1081,6 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
|
|
||||||
def __call__(self, irc, msg):
|
def __call__(self, irc, msg):
|
||||||
# This is for later dynamic scoping.
|
# This is for later dynamic scoping.
|
||||||
if msg.args and irc.isChannel(msg.args[0]):
|
|
||||||
channel = msg.args[0]
|
|
||||||
else:
|
|
||||||
channel = None
|
|
||||||
if msg.command == 'PRIVMSG':
|
if msg.command == 'PRIVMSG':
|
||||||
if self.noIgnore or not ircdb.checkIgnored(msg.prefix,msg.args[0]):
|
if self.noIgnore or not ircdb.checkIgnored(msg.prefix,msg.args[0]):
|
||||||
self.__parent.__call__(irc, msg)
|
self.__parent.__call__(irc, msg)
|
||||||
|
@ -733,6 +733,10 @@ class Irc(IrcCommandDispatcher):
|
|||||||
"""Called by the IrcDriver; feeds a message received."""
|
"""Called by the IrcDriver; feeds a message received."""
|
||||||
msg.tag('receivedBy', self)
|
msg.tag('receivedBy', self)
|
||||||
msg.tag('receivedOn', self.network)
|
msg.tag('receivedOn', self.network)
|
||||||
|
if msg.args and self.isChannel(msg.args[0]):
|
||||||
|
channel = msg.args[0]
|
||||||
|
else:
|
||||||
|
channel = None
|
||||||
log.debug('Incoming message: ' + str(msg).rstrip('\r\n'))
|
log.debug('Incoming message: ' + str(msg).rstrip('\r\n'))
|
||||||
|
|
||||||
# Yeah, so this is odd. Some networks (oftc) seem to give us certain
|
# Yeah, so this is odd. Some networks (oftc) seem to give us certain
|
||||||
|
Loading…
Reference in New Issue
Block a user