From 7af8b7a6ed3573ce9713ddbb967a63eaf8c52065 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 9 Feb 2015 19:24:32 +0100 Subject: Keep pep8 happy --- miniircd | 6 +++--- 1 file 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. -- cgit v1.2.3