Changeset 4383

Show
Ignore:
Timestamp:
09/28/06 15:30:20 (2 years ago)
Author:
morris
Message:

Also remove users from chats if the messages comes from the public chat

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCChat.m

    r4359 r4383  
    4242#import "WCUserInfo.h" 
    4343 
     44#define WCPublicChatID                          1 
     45 
    4446#define WCLastChatFormat                        @"WCLastChatFormat" 
    4547#define WCLastChatEncoding                      @"WCLastChatEncoding" 
     
    852854        uid             = [fields safeObjectAtIndex:1]; 
    853855 
    854         if([cid unsignedIntValue] != [self chatID]) 
     856        if([cid unsignedIntValue] != WCPublicChatID && [cid unsignedIntValue] != [self chatID]) 
    855857                return; 
    856858 
     
    13811383 
    13821384- (unsigned int)chatID { 
    1383         return 1
     1385        return WCPublicChatID
    13841386} 
    13851387 
     
    14731475        [_saveChatPlainTextEncodingPopUpButton selectItemWithTag:encoding]; 
    14741476         
    1475         if([self chatID] == 1) { 
     1477        if([self chatID] == WCPublicChatID) { 
    14761478                name = [NSSWF:NSLS(@"%@ Public Chat", "Save chat file name (server)"), 
    14771479                        [[self connection] name]];