Ticket #3479: patch.diff
| File patch.diff, 2.6 kB (added by absinth, 3 years ago) |
|---|
-
Plugins/Gaim
old new 138 138 139 139 secondSearchRange = [primaryString rangeOfString:@" to his or her buddy list."]; 140 140 if (secondSearchRange.location == NSNotFound) { 141 secondSearchRange = [primaryString rangeOfString:@" to their buddy listfor the following reason:\n"];141 secondSearchRange = [primaryString rangeOfString:@" to their buddy **** for the following reason:\n"]; 142 142 } 143 143 144 144 //ICQ and MSN may have the friendly name or alias after the name; we want just the screen name … … 188 188 189 189 if (reason && [reason length]) [infoDict setObject:reason forKey:@"Reason"]; 190 190 191 requestController = [ESGaimAuthorizationRequestWindowController mainPerformSelector:@selector(showAuthorizationRequestWithDict:) 191 NSEnumerator *enumerator; 192 AIAccount *account; 193 NSMutableSet *requestedServices = [NSMutableSet set]; 194 195 enumerator = [[[[AIObject sharedAdiumInstance] accountController] accountArray] objectEnumerator]; 196 while(account = [enumerator nextObject]){ 197 if([account online] && 198 [[[account UID] compactedString] isEqualToString:[accountName compactedString]] && 199 ![requestedServices containsObject:[account service]]){ 200 AIAccount <AIAccount_Privacy> *privacyAccount = (AIAccount <AIAccount_Privacy> *)account; 201 202 if(![[privacyAccount listObjectIDsOnPrivacyList:PRIVACY_DENY] containsObject:remoteName]) 203 requestController = [ESGaimAuthorizationRequestWindowController mainPerformSelector:@selector(showAuthorizationRequestWithDict:) 192 204 withObject:infoDict 193 205 returnValue:YES]; 194 206 } 207 } 195 208 } else if (primaryString && ([primaryString rangeOfString:@"Add buddy to your list?"].location != NSNotFound)) { 196 209 /* This is the Jabber doing inelegantly what we elegantly handle in the authorization request window for all 197 210 * services, asking if the user wants to add a contact which just added him. We just ignore this request, as