[wip] idea for ordering batches in Irc.queue

This commit is contained in:
Valentin Lorentz 2021-03-13 12:15:21 +01:00
parent e19436a4ba
commit 26f2d9a292

View File

@ -1378,6 +1378,8 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
# TODO: the batch will be ordered with the priority of a BATCH # TODO: the batch will be ordered with the priority of a BATCH
# message (ie. normal), but if the batch is made only of low-priority # message (ie. normal), but if the batch is made only of low-priority
# messages like PRIVMSG, it should have that priority. # messages like PRIVMSG, it should have that priority.
# (or maybe order on the batch type instead of commands inside
# the batch?)
self.queue.enqueue(msgs[0]) self.queue.enqueue(msgs[0])
def _truncateMsg(self, msg): def _truncateMsg(self, msg):