.BANCHO. Configurable IRC hostname

This commit is contained in:
Nyo
2016-09-04 12:36:21 +02:00
parent 2d91231320
commit d5c87ba51c
2 changed files with 4 additions and 1 deletions

View File

@@ -516,7 +516,8 @@ class Client:
class Server:
def __init__(self, port):
self.host = socket.getfqdn("127.0.0.1")[:63]
#self.host = socket.getfqdn("127.0.0.1")[:63]
self.host = glob.conf.config["irc"]["hostname"]
self.port = port
self.clients = {} # Socket --> Client instance.
self.motd = ["Welcome to pep.py's embedded IRC server!", "This is a VERY simple IRC server and it's still in beta.", "Expect things to crash and not work as expected :("]