]> jfr.im git - erebus.git/commitdiff
fix error
authorzonidjan <redacted>
Mon, 27 Nov 2017 02:26:30 +0000 (20:26 -0600)
committerzonidjan <redacted>
Mon, 27 Nov 2017 02:26:30 +0000 (20:26 -0600)
bot.py
erebus.py

diff --git a/bot.py b/bot.py
index d5d397153821e7d3d8f4ce4c84cf476b3ec300a6..16979727e6194891ce0b02b024415ef8b2c687b7 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -454,7 +454,7 @@ class BotConnection(object):
                return self.state == 2
 
        def send(self, line):
-               if self.parent.cfg.getboolean('debug', 'io'):
+               if self.parent.parent.cfg.getboolean('debug', 'io'):
                        self.parent.log('O', line)
 #              print "%09.3f %s [O] %s" % (time.time() % 100000, self.parent.nick, line)
                self.bytessent += len(line)
index 524b9a451ae589f825635b353800316acdbfb986..3f26ea29063400686306f3b849ab8e1bb2373bf3 100644 (file)
--- a/erebus.py
+++ b/erebus.py
@@ -7,7 +7,7 @@ import os, sys, select, MySQLdb, MySQLdb.cursors, time, random, gc
 import bot, config, ctlmod
 
 class Erebus(object): #singleton to pass around
-       APIVERSION = 2
+       APIVERSION = 0
        RELEASE = 0
 
        bots = {}