mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
supybot.protocols.irc.queueDuplicateMessages
This commit is contained in:
parent
54876e45ab
commit
697249dc4e
@ -151,7 +151,8 @@ class IrcMsgQueue(object):
|
||||
|
||||
def enqueue(self, msg):
|
||||
"""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()
|
||||
log.warning('Not adding message %r to queue, already added.', s)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user