From d80a16ac9cc73ce95b62a21892e2055a548e0e44 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Tue, 11 May 2010 16:45:14 +0000 Subject: Display the status change and/or disconnect for recent-speakers only. fixed #1288 --- src/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/config.py') diff --git a/src/config.py b/src/config.py index 57c3d90a..8237c7b7 100644 --- a/src/config.py +++ b/src/config.py @@ -59,7 +59,10 @@ class Config(RawConfigParser): return self._get(option) def getint(self, option): - return int(self._get(option)) + try: + return int(self._get(option)) + except ValueError: + return -1 def getfloat(self, option): return float(self._get(option)) -- cgit v1.2.3