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:
|
||||
self.send_pass(self.connection_params.password)
|
||||
|
||||
self.send_user(self.connection_params.username,
|
||||
self.connection_params.realname)
|
||||
self.send_nick(self.connection_params.nickname)
|
||||
nickname = self.connection_params.nicknamme
|
||||
username = self.connection_params.username or nickname
|
||||
realname = self.connection_params.realname or nickname
|
||||
|
||||
self.send_user(username, realname)
|
||||
self.send_nick(nickname)
|
||||
self.connected = True
|
||||
def disconnect(self):
|
||||
self.cached_fileno = self.socket.fileno()
|
||||
|
|
Loading…
Reference in a new issue