mirror of https://github.com/Mikaela/Limnoria.git
supybot.protocols.irc.queueDuplicateMessages
This commit is contained in:
parent
54876e45ab
commit
697249dc4e
|
@ -151,7 +151,8 @@ class IrcMsgQueue(object):
|
||||||
|
|
||||||
def enqueue(self, msg):
|
def enqueue(self, msg):
|
||||||
"""Enqueues a given message."""
|
"""Enqueues a given message."""
|
||||||
if msg in self.msgs:
|
if msg in self.msgs and \
|
||||||
|
not conf.supybot.protocols.irc.queueDuplicateMessages():
|
||||||
s = str(msg).strip()
|
s = str(msg).strip()
|
||||||
log.warning('Not adding message %r to queue, already added.', s)
|
log.warning('Not adding message %r to queue, already added.', s)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue