Adium

Changeset 14513

Show
Ignore:
Timestamp:
12/19/2005 10:29:44 PM (3 years ago)
Author:
catfish_man
Message:

Making word replacement not crash when there's no account associated with the chat. Fixes #2473

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m

    r13634 r14513  
    885885                range = [inString rangeOfString:@"%sourceName%"]; 
    886886                if(range.location != NSNotFound){ 
     887                        NSString * sourceName = [[[chat account] displayName] stringByEscapingForHTML]; 
     888                        if(!sourceName) sourceName = @" "; 
    887889                        [inString replaceCharactersInRange:range 
    888                                                                         withString:[[[chat account] displayName] stringByEscapingForHTML]]; 
     890                                                                        withString:sourceName]; 
    889891                         
    890892                }