diff options
| author | 2018-11-05 18:30:14 +0000 | |
|---|---|---|
| committer | 2018-11-05 18:30:39 +0000 | |
| commit | d63115440dbf426063e0f5d813255295dc910837 (patch) | |
| tree | 309f51ae7b1e920a30149150ee96ab4297847cb0 /src/IRCServer.py | |
| parent | Pass connection parameters around in their own object (IRCConnectionParameters) (diff) | |
| signature | ||
Fix the order of some connection params, add `alias` as a seperate argument to
IRCServer.Server
Diffstat (limited to 'src/IRCServer.py')
| -rw-r--r-- | src/IRCServer.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IRCServer.py b/src/IRCServer.py index b2e1607f..62efbc8f 100644 --- a/src/IRCServer.py +++ b/src/IRCServer.py @@ -11,11 +11,13 @@ class Server(IRCObject.Object): bot: "IRCBot.Bot", events: EventManager.EventHook, id: int, + alias: typing.Optional[str], connection_params: utils.irc.IRCConnectionParameters): self.connected = False self.bot = bot self.events = events self.id = id + self.alias = alias self.connection_params = connection_params self.name = None # type: typing.Optional[str] @@ -87,7 +89,7 @@ class Server(IRCObject.Object): self.socket.settimeout(5.0) if self.connection_params.bindhost: - self.socket.bind((self.bindhost, 0)) + self.socket.bind((self.connection_params.bindhost, 0)) if self.connection_params.tls: self.tls_wrap() @@ -95,7 +97,7 @@ class Server(IRCObject.Object): self.connection_params.port)) self.send_capibility_ls() - if self.password: + if self.connection_params.password: self.send_pass(self.connection_params.password) self.send_user(self.connection_params.username, |
