summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2013-06-14 00:00:53 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2013-06-14 00:00:53 +0200
commit9b5c0b141cd333f563691cbb11e4c59094103c8c (patch)
tree1588ffc9740fc5ae57c3b2e83df285ecf94c2829
parent5da7ed157de9b34ec17f975a81b8a2912a45a31e (diff)
Fixed fetching mode config option.
-rwxr-xr-xfot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fot.py b/fot.py
index 387b426..674b042 100755
--- a/fot.py
+++ b/fot.py
@@ -116,7 +116,7 @@ class Bot(irc.IRCClient):
irc.IRCClient.connectionMade(self)
def set_usermodes(self):
- mode = config.get(self.factory.server, 'mode', None)
+ mode = config.get(self.factory.server, 'mode') if config.has_option(self.factory.server, 'mode') else None
if not mode:
return