Skip to content
Browse files

do not use configured nick but use input nick again

  • Loading branch information...
1 parent f99654a commit a6fd93b44ab7b55332cd8b68c1aa776c5ac02bc0 @psychs committed May 10, 2010
Showing with 6 additions and 4 deletions.
  1. +6 −4 Classes/IRC/IRCClient.m
View
10 Classes/IRC/IRCClient.m
@@ -3609,12 +3609,14 @@ - (void)ircConnectionDidConnect:(IRCConnection*)sender
isConnected = reconnectEnabled = YES;
encoding = config.encoding;
- [inputNick autorelease];
+ if (!inputNick.length) {
+ [inputNick autorelease];
+ inputNick = [config.nick retain];
+ }
[sentNick autorelease];
[myNick autorelease];
- inputNick = [config.nick retain];
- sentNick = [config.nick retain];
- myNick = [config.nick retain];
+ sentNick = [inputNick retain];
+ myNick = [inputNick retain];
[isupport reset];
[myMode clear];

0 comments on commit a6fd93b

Please sign in to comment.
Something went wrong with that request. Please try again.