diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2015-02-09 19:24:32 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2015-02-09 19:29:39 +0100 |
commit | 7af8b7a6ed3573ce9713ddbb967a63eaf8c52065 (patch) | |
tree | 1cfab47ab8dad69237cadd5da76c814a3a764bc8 | |
parent | 580fed938d5c3f5cdb78f61b441eb717d17aff4c (diff) | |
download | miniircd-7af8b7a6ed3573ce9713ddbb967a63eaf8c52065.tar.gz miniircd-7af8b7a6ed3573ce9713ddbb967a63eaf8c52065.zip |
Keep pep8 happy
-rwxr-xr-x | miniircd | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |