Fall back to nickname for username/realname, as it used to be

This commit is contained in:
jesopo 2018-11-05 20:08:55 +00:00
parent f0f2701386
commit afce01d0f8

View file

@ -100,9 +100,12 @@ class Server(IRCObject.Object):
if self.connection_params.password: if self.connection_params.password:
self.send_pass(self.connection_params.password) self.send_pass(self.connection_params.password)
self.send_user(self.connection_params.username, nickname = self.connection_params.nicknamme
self.connection_params.realname) username = self.connection_params.username or nickname
self.send_nick(self.connection_params.nickname) realname = self.connection_params.realname or nickname
self.send_user(username, realname)
self.send_nick(nickname)
self.connected = True self.connected = True
def disconnect(self): def disconnect(self):
self.cached_fileno = self.socket.fileno() self.cached_fileno = self.socket.fileno()