diff --git a/Chat Core/MVIRCChatConnection.m b/Chat Core/MVIRCChatConnection.m
index 1e689b9..d12fa2d 100755
|
a
|
b
|
|
| 985 | 985 | if( echo ) { |
| 986 | 986 | MVChatRoom *room = ([target isKindOfClass:[MVChatRoom class]] ? target : nil); |
| 987 | 987 | NSNumber *action = ([[attributes objectForKey:@"action"] boolValue] ? [attributes objectForKey:@"action"] : [NSNumber numberWithBool:NO]); |
| 988 | | NSDictionary *privmsgInfo = [NSDictionary dictionaryWithObjectsAndKeys:msg, @"message", [self localUser], @"user", [NSString locallyUniqueString], @"identifier", action, @"action", target, @"target", room, @"room", nil]; |
| | 988 | NSMutableDictionary *privmsgInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:msg, @"message", [self localUser], @"user", [NSString locallyUniqueString], @"identifier", action, @"action", target, @"target", room, @"room", nil]; |
| 989 | 989 | [self performSelector:@selector( _handlePrivmsg: ) withObject:privmsgInfo]; |
| 990 | 990 | } |
| 991 | 991 | |
| … |
… |
|
| 1895 | 1895 | #pragma mark - |
| 1896 | 1896 | #pragma mark Incoming Message Replies |
| 1897 | 1897 | |
| 1898 | | - (void) _handlePrivmsg:(NSDictionary *) privmsgInfo { |
| | 1898 | - (void) _handlePrivmsg:(NSMutableDictionary *) privmsgInfo { |
| 1899 | 1899 | MVAssertMainThreadRequired(); |
| 1900 | 1900 | |
| 1901 | 1901 | MVChatRoom *room = [privmsgInfo objectForKey:@"room"]; |
| … |
… |
|
| 1965 | 1965 | if( ctcp ) { |
| 1966 | 1966 | [self _handleCTCP:msgData asRequest:YES fromSender:sender forRoom:room]; |
| 1967 | 1967 | } else { |
| 1968 | | NSDictionary *privmsgInfo = [[NSDictionary allocWithZone:nil] initWithObjectsAndKeys:msgData, @"message", sender, @"user", [NSString locallyUniqueString], @"identifier", target, @"target", room, @"room", nil]; |
| | 1968 | NSMutableDictionary *privmsgInfo = [[NSMutableDictionary allocWithZone:nil] initWithObjectsAndKeys:msgData, @"message", sender, @"user", [NSString locallyUniqueString], @"identifier", target, @"target", room, @"room", nil]; |
| 1969 | 1969 | [self performSelectorOnMainThread:@selector( _handlePrivmsg: ) withObject:privmsgInfo waitUntilDone:NO]; |
| 1970 | 1970 | [privmsgInfo release]; |
| 1971 | 1971 | } |
| 1972 | 1972 | } |
| 1973 | 1973 | } |
| 1974 | 1974 | |
| 1975 | | - (void) _handleNotice:(NSDictionary *) noticeInfo { |
| | 1975 | - (void) _handleNotice:(NSMutableDictionary *) noticeInfo { |
| 1976 | 1976 | MVAssertMainThreadRequired(); |
| 1977 | 1977 | |
| 1978 | 1978 | id target = [noticeInfo objectForKey:@"target"]; |
| … |
… |
|
| 2067 | 2067 | if ( ctcp ) { |
| 2068 | 2068 | [self _handleCTCP:msgData asRequest:NO fromSender:sender forRoom:room]; |
| 2069 | 2069 | } else { |
| 2070 | | NSDictionary *noticeInfo = [[NSDictionary allocWithZone:nil] initWithObjectsAndKeys:msgData, @"message", sender, @"user", [NSString locallyUniqueString], @"identifier", [NSNumber numberWithBool:YES], @"notice", target, @"target", room, @"room", nil]; |
| | 2070 | NSMutableDictionary *noticeInfo = [[NSMutableDictionary allocWithZone:nil] initWithObjectsAndKeys:msgData, @"message", sender, @"user", [NSString locallyUniqueString], @"identifier", [NSNumber numberWithBool:YES], @"notice", target, @"target", room, @"room", nil]; |
| 2071 | 2071 | [self performSelectorOnMainThread:@selector( _handleNotice: ) withObject:noticeInfo waitUntilDone:NO]; |
| 2072 | 2072 | [noticeInfo release]; |
| 2073 | 2073 | } |
| … |
… |
|
| 2097 | 2097 | |
| 2098 | 2098 | if( [command isCaseInsensitiveEqualToString:@"ACTION"] && arguments ) { |
| 2099 | 2099 | // special case ACTION and send it out like a message with the action flag |
| 2100 | | NSDictionary *msgInfo = [NSDictionary dictionaryWithObjectsAndKeys:arguments, @"message", sender, @"user", [NSString locallyUniqueString], @"identifier", [NSNumber numberWithBool:YES], @"action", room, @"room", nil]; |
| | 2100 | NSMutableDictionary *msgInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:arguments, @"message", sender, @"user", [NSString locallyUniqueString], @"identifier", [NSNumber numberWithBool:YES], @"action", room, @"room", nil]; |
| 2101 | 2101 | |
| 2102 | 2102 | [self _handlePrivmsg:msgInfo]; // No need to explicitly call this on main thread, as we are already in it. |
| 2103 | 2103 | |