| Paste number 74239: | MVIRCChatConnection |
| Pasted by: | akempgen |
| When: | 3 years, 3 months ago |
| Share: | Tweet this! | http://paste.lisp.org/+1LA7 |
| Channel: | #colloquy |
| Paste contents: |
+ // Catch "[#room] - Welcome to #room!" notices and show them in the room instead
+ NSString *possibleRoomNameInNotice = [[[msg componentsSeparatedByString:@" "] objectAtIndex:0] stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"[]()"]];
+ if( [possibleRoomNameInNotice length] >= 1 && [[self chatRoomNamePrefixes] characterIsMember:[possibleRoomNameInNotice characterAtIndex:0]] && [self joinedChatRoomWithUniqueIdentifier:possibleRoomNameInNotice] ) {
+ [[NSNotificationCenter defaultCenter] postNotificationName:MVChatRoomGotMessageNotification object:[self joinedChatRoomWithUniqueIdentifier:possibleRoomNameInNotice] userInfo:noticeInfo];
+ [msg release];
+ return;
+ }
This paste has no annotations.