Skip to content

Commit

Permalink
tweaked style
Browse files Browse the repository at this point in the history
  • Loading branch information
psychs committed May 27, 2010
1 parent 5463061 commit 6953266
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Classes/IRC/IRCClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -2971,14 +2971,15 @@ - (void)receiveInvite:(IRCMessage*)m

NSString* text = [NSString stringWithFormat:@"%@ has invited you to %@", nick, chname];
[self printBoth:self type:LINE_TYPE_INVITE text:text];
if ( [Preferences autoJoinOnInvited] ) {
IRCChannel* c = [self findChannel: chname];
if ( !c ) {

if ([Preferences autoJoinOnInvited]) {
IRCChannel* c = [self findChannel:chname];
if (!c) {
IRCChannelConfig* seed = [[IRCChannelConfig new] autorelease];
seed.name = chname;
c = [world createChannel:seed client:self reload:YES adjust:YES];
[world save];
[self joinChannel: c];
[self joinChannel:c];
}
}

Expand Down

0 comments on commit 6953266

Please sign in to comment.