Paste number 74239: MVIRCChatConnection

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:
Raw Source | XML | Display As
+			// 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.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.