Changeset 3565

Show
Ignore:
Timestamp:
01/22/07 14:48:55 (2 years ago)
Author:
timothy
Message:

Pass all NSAttributedStrings to F-Script, don't convert them to plain strings. This was a copy and paste mistake.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plug-Ins/F-Script Support/JVFScriptChatPlugin.m

    r3563 r3565  
    265265 
    266266- (void) memberParted:(JVChatRoomMember *) member fromRoom:(JVChatRoomPanel *) room forReason:(NSAttributedString *) reason { 
    267         NSArray *args = [NSArray arrayWithObjects:member, room, ( reason ? (id)[reason string] : (id)[NSNull null] ), nil]; 
     267        NSArray *args = [NSArray arrayWithObjects:member, room, ( reason ? (id)reason : (id)[NSNull null] ), nil]; 
    268268        [self callScriptBlockNamed:@"memberParted" withArguments:args forSelector:_cmd]; 
    269269} 
    270270 
    271271- (void) memberKicked:(JVChatRoomMember *) member fromRoom:(JVChatRoomPanel *) room by:(JVChatRoomMember *) by forReason:(NSAttributedString *) reason { 
    272         NSArray *args = [NSArray arrayWithObjects:member, room, ( by ? (id)by : (id)[NSNull null] ), ( reason ? (id)[reason string] : (id)[NSNull null] ), nil]; 
     272        NSArray *args = [NSArray arrayWithObjects:member, room, ( by ? (id)by : (id)[NSNull null] ), ( reason ? (id)reason : (id)[NSNull null] ), nil]; 
    273273        [self callScriptBlockNamed:@"memberKicked" withArguments:args forSelector:_cmd]; 
    274274} 
     
    285285 
    286286- (void) kickedFromRoom:(JVChatRoomPanel *) room by:(JVChatRoomMember *) by forReason:(NSAttributedString *) reason { 
    287         NSArray *args = [NSArray arrayWithObjects:room, ( by ? (id)by : (id)[NSNull null] ), ( reason ? (id)[reason string] : (id)[NSNull null] ), nil]; 
     287        NSArray *args = [NSArray arrayWithObjects:room, ( by ? (id)by : (id)[NSNull null] ), ( reason ? (id)reason : (id)[NSNull null] ), nil]; 
    288288        [self callScriptBlockNamed:@"kickedFromRoom" withArguments:args forSelector:_cmd]; 
    289289}