]> jfr.im git - erebus.git/blobdiff - bot.py
* - change old code to use newer cfg.getboolean instead of bool(int())
[erebus.git] / bot.py
diff --git a/bot.py b/bot.py
index 883472448f039b1c17d381ba6749657c670445a3..d5d397153821e7d3d8f4ce4c84cf476b3ec300a6 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -51,9 +51,9 @@ class Bot(object):
                except: pass
 
        def watchdog(self):
-               if time.time() > self.parent.cfg.get('watchdog', 'maxtime', default=300)+self.lastreceived:
+               if time.time() > int(self.parent.cfg.get('watchdog', 'maxtime', default=300))+self.lastreceived:
                        self.parse("ERROR :Fake-error from watchdog timer.")
-               self.watchdogtimer = MyTimer(self.parent.cfg.get('watchdog', 'interval', default=30), self.watchdog)
+               self.watchdogtimer = MyTimer(int(self.parent.cfg.get('watchdog', 'interval', default=30)), self.watchdog)
 
        def log(self, *args, **kwargs):
                self.parent.log(self.nick, *args, **kwargs)