summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2015-02-09 19:24:32 +0100
committerJoel Rosdahl <joel@rosdahl.net>2015-02-09 19:29:39 +0100
commit7af8b7a6ed3573ce9713ddbb967a63eaf8c52065 (patch)
tree1cfab47ab8dad69237cadd5da76c814a3a764bc8
parent580fed938d5c3f5cdb78f61b441eb717d17aff4c (diff)
downloadminiircd-7af8b7a6ed3573ce9713ddbb967a63eaf8c52065.tar.gz
miniircd-7af8b7a6ed3573ce9713ddbb967a63eaf8c52065.zip
Keep pep8 happy
-rwxr-xr-xminiircd6
1 files changed, 3 insertions, 3 deletions
diff --git a/miniircd b/miniircd
index e95bb2d..413b6c0 100755
--- a/miniircd
+++ b/miniircd
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# Hey, Emacs! This is -*-python-*-.
#
-# Copyright (C) 2003-2014 Joel Rosdahl
+# Copyright (C) 2003-2015 Joel Rosdahl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -647,8 +647,8 @@ class Server(object):
self.address = socket.gethostbyname(options.listen)
else:
self.address = ""
- self.name = socket.getfqdn(self.address)[:63] # Server name limit from
- # the RFC.
+ server_name_limit = 63 # From the RFC.
+ self.name = socket.getfqdn(self.address)[:server_name_limit]
self.channels = {} # irc_lower(Channel name) --> Channel instance.
self.clients = {} # Socket --> Client instance.