adium 4316:eb53d7749f4b: Use accounts' password if available.
commits at adium.im
commits at adium.im
Fri Nov 25 11:41:14 UTC 2011
details: http://hg.adium.im/adium/rev/eb53d7749f4b
revision: 4316:eb53d7749f4b
branch: (none)
author: Patrick Steinhardt <steinhardt.p at me.com>
date: Fri Nov 25 12:36:33 2011 +0100
Use accounts' password if available.
Fix Adium asking for an actually known password when signing in with a
registered IRC account. Refs #15020.
diffs (16 lines):
diff -r b4a8916957f3 -r eb53d7749f4b Source/AdiumPasswords.m
--- a/Source/AdiumPasswords.m Fri Nov 25 00:35:11 2011 +0100
+++ b/Source/AdiumPasswords.m Fri Nov 25 12:36:33 2011 +0100
@@ -384,7 +384,11 @@
- (void)passwordForType:(AISpecialPasswordType)inType forAccount:(AIAccount *)inAccount promptOption:(AIPromptOption)inOption name:(NSString *)inName notifyingTarget:(id)inTarget selector:(SEL)inSelector context:(id)inContext
{
- NSString *password = [self passwordForType:inType forAccount:inAccount name:inName.lowercaseString];
+ NSString *password = [inAccount valueForKey:@"password"];
+
+ if (!password || [password length] == 0) {
+ password = [self passwordForType:inType forAccount:inAccount name:inName.lowercaseString];
+ }
if (inOption != AIPromptAlways && password && [password length] != 0) {
//Invoke the target right away
More information about the commits
mailing list