Source/AIURLHandlerAdvancedPreferences.m
branchadium-1.5.10.4
changeset 5983 a98704da1923
parent 3678 4dbda7e6999b
equal deleted inserted replaced
5982:e58f535ef9d2 5983:a98704da1923
   189 	NSImage					*image = [servicesInformation objectForKey:@"image"];
   189 	NSImage					*image = [servicesInformation objectForKey:@"image"];
   190 	
   190 	
   191 	if (!image) {
   191 	if (!image) {
   192 		AIService *service = [adium.accountController firstServiceWithServiceID:[plugin serviceIDForScheme:scheme]];
   192 		AIService *service = [adium.accountController firstServiceWithServiceID:[plugin serviceIDForScheme:scheme]];
   193 		image = [AIServiceIcons serviceIconForService:service type:AIServiceIconLarge direction:AIIconNormal];
   193 		image = [AIServiceIcons serviceIconForService:service type:AIServiceIconLarge direction:AIIconNormal];
   194 		[servicesInformation setObject:image forKey:@"image"];
   194 		if (image) [servicesInformation setObject:image forKey:@"image"];
   195 	}
   195 	}
   196 	
   196 	
   197 	return image;	
   197 	return image;	
   198 }
   198 }
   199 
   199 
   203 	NSString				*longServiceName = [servicesInformation objectForKey:@"name"];
   203 	NSString				*longServiceName = [servicesInformation objectForKey:@"name"];
   204 	
   204 	
   205 	if (!longServiceName) {
   205 	if (!longServiceName) {
   206 		AIService *service = [adium.accountController firstServiceWithServiceID:[plugin serviceIDForScheme:scheme]];
   206 		AIService *service = [adium.accountController firstServiceWithServiceID:[plugin serviceIDForScheme:scheme]];
   207 		longServiceName = [service longDescription];
   207 		longServiceName = [service longDescription];
   208 		[servicesInformation setObject:longServiceName forKey:@"name"];
   208 		[servicesInformation setObject:(longServiceName ?: @"(unknown)") forKey:@"name"];
   209 	}
   209 	}
   210 	
   210 	
   211 	return longServiceName;
   211 	return longServiceName;
   212 }
   212 }
   213 
   213