Permalink
Browse files

tweaked style

  • Loading branch information...
psychs committed May 27, 2010
1 parent 5463061 commit 69532669ef7f59da36cae84d79d10d8e9673964b
Showing with 5 additions and 4 deletions.
  1. +5 −4 Classes/IRC/IRCClient.m
View
@@ -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];
}
}

0 comments on commit 6953266

Please sign in to comment.