Fall back to nickname for username/realname, as it used to be
This commit is contained in:
parent
f0f2701386
commit
afce01d0f8
1 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue