summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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