Changeset 3642
- Timestamp:
- 01/28/06 10:27:06 (3 years ago)
- Files:
-
- WiredClient/trunk/WCChat.m (modified) (1 diff)
- WiredClient/trunk/WCServerConnection.m (modified) (3 diffs)
- WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCChat.m
r3638 r3642 1057 1057 else if(selector == @selector(insertTab:)) { 1058 1058 if([WCSettings boolForKey:WCTabCompleteNicks]) { 1059 NSArray *nicks;1060 NSString *p, *prefix;1061 int i, count, options;1062 1063 1059 [_chatInputTextView setString:[self _completeString:[_chatInputTextView string]]]; 1064 1060 WiredClient/trunk/WCServerConnection.m
r3596 r3642 37 37 #import "WCMessages.h" 38 38 #import "WCNews.h" 39 #import "WCPreferences.h" 39 40 #import "WCPublicChat.h" 40 41 #import "WCSearch.h" … … 70 71 71 72 [self window]; 73 74 [[NSNotificationCenter defaultCenter] 75 addObserver:self 76 selector:@selector(nickDidChange:) 77 name:WCNickDidChange]; 78 79 [[NSNotificationCenter defaultCenter] 80 addObserver:self 81 selector:@selector(statusDidChange:) 82 name:WCStatusDidChange]; 83 84 [[NSNotificationCenter defaultCenter] 85 addObserver:self 86 selector:@selector(iconDidChange:) 87 name:WCIconDidChange]; 72 88 73 89 [self addObserver:self … … 268 284 269 285 286 - (void)nickDidChange:(NSNotification *)notification { 287 NSString *nick; 288 289 nick = [_bookmark objectForKey:WCBookmarksNick]; 290 291 if([nick length] == 0) 292 nick = [WCSettings objectForKey:WCNick]; 293 294 [_link sendCommand:WCNickCommand withArgument:nick]; 295 } 296 297 298 299 - (void)statusDidChange:(NSNotification *)notification { 300 NSString *status; 301 302 if([_server protocol] >= 1.1) { 303 status = [_bookmark objectForKey:WCBookmarksStatus]; 304 305 if([status length] == 0) 306 status = [WCSettings objectForKey:WCStatus]; 307 308 [_link sendCommand:WCStatusCommand withArgument:status]; 309 } 310 } 311 312 313 314 - (void)iconDidChange:(NSNotification *)notification { 315 if([_server protocol] >= 1.1) { 316 [_link sendCommand:WCIconCommand 317 withArgument:@"0" 318 withArgument:[WCSettings objectForKey:WCCustomIcon]]; 319 } 320 } 321 322 323 270 324 - (void)connectionDidConnect:(NSNotification *)notification { 271 325 [_link sendCommand:WCHelloCommand]; WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj
r3620 r3642 1404 1404 A57512EC05E4E64D003B51D7 /* WCCache.m in Sources */, 1405 1405 A5DC7F25057AAFE100736BBF /* WCChat.m in Sources */, 1406 777D3F6609890273005B5EC1 /* WCChatWindow.m in Sources */, 1406 1407 A5A338FE0720483C00A16E9A /* WCConnectionController.m in Sources */, 1407 1408 A5DC7EE5057AAF2900736BBF /* WCConsole.m in Sources */, … … 1438 1439 A5DC7F84057AB05F00736BBF /* WCUserCell.m in Sources */, 1439 1440 A5DC7F09057AAF6C00736BBF /* WCUserInfo.m in Sources */, 1440 777D3F6609890273005B5EC1 /* WCChatWindow.m in Sources */,1441 1441 ); 1442 1442 runOnlyForDeploymentPostprocessing = 0;
