]> jfr.im git - erebus.git/commitdiff
fix msg() with nofakelag
authorJohn Runyon <redacted>
Sat, 17 Jun 2023 07:00:13 +0000 (01:00 -0600)
committerJohn Runyon <redacted>
Sat, 17 Jun 2023 07:00:13 +0000 (01:00 -0600)
bot.py

diff --git a/bot.py b/bot.py
index 793e27f6b6c923ad162e0f70ee41317c105a40b1..157b0901dba09cc9f17c4ea9fae0fce143acd199 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -395,7 +395,7 @@ class Bot(object):
                In the case of fastmsg, self.conn.exceeded may be True, however, in this case append_callback=self.conn.send, so it will still be sent immediately.
        """
        def _msg(self, target, msg, truncate, append_callback, msgtype):
-               if self.parent.cfg.getboolean('erebus', 'nofakelag'): return self.fastmsg(target, msg)
+               if self.parent.cfg.getboolean('erebus', 'nofakelag'): append_callback = self.conn.send
 
                cmd = self._formatmsg(target, msg, msgtype)
                # The max length is much shorter than recvq (510) because of the length the server adds on about the source (us).