Changeset 3286

Show
Ignore:
Timestamp:
06/10/06 22:36:07 (2 years ago)
Author:
timothy
Message:

Correctly sets the away message from AppleScript?. Fixes #652.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Chat Core/MVChatConnection.m

    r3262 r3286  
    997997} 
    998998 
    999 - (void) setScriptTypedAwayMessage:(NSString *) message { 
    1000         NSAttributedString *attributeMsg = [NSAttributedString attributedStringWithHTMLFragment:message baseURL:nil]; 
     999- (void) setScriptTypedAwayMessage:(id) message { 
     1000        NSString *msg = message; 
     1001        if( [message isKindOfClass:[NSTextStorage class]] ) msg = [message string]; 
     1002        NSAttributedString *attributeMsg = [NSAttributedString attributedStringWithHTMLFragment:msg baseURL:nil]; 
    10011003        [self setAwayStatusWithMessage:attributeMsg]; 
    10021004}