| 39 | | if( ! [reason length] ) [[self connection] sendRawMessageImmediatelyWithFormat:@"PART %@", [self name]]; |
|---|
| 40 | | else [[self connection] sendRawMessageImmediatelyWithFormat:@"PART %@ :%@", [self name], [reason string]]; |
|---|
| | 39 | |
|---|
| | 40 | if( [reason length] ) { |
|---|
| | 41 | NSData *reasonData = [MVIRCChatConnection _flattenedIRCDataForMessage:reason withEncoding:[self encoding] andChatFormat:[[self connection] outgoingChatFormat]]; |
|---|
| | 42 | NSString *prefix = [[NSString allocWithZone:nil] initWithFormat:@"PART %@ :", [self name]]; |
|---|
| | 43 | [[self connection] sendRawMessageWithComponents:prefix, reasonData, nil]; |
|---|
| | 44 | [prefix release]; |
|---|
| | 45 | } else [[self connection] sendRawMessageImmediatelyWithFormat:@"PART %@", [self name]]; |
|---|
| | 46 | |
|---|