adium: Adding fix per bug #196 comments
authorMichael Lamb <mlamb1976@yahoo.com>
Thu, 13 Jun 2013 18:25:47 +0000 (13 11:25 -0700)
committerMichael Lamb <mlamb1976@yahoo.com>
Thu, 13 Jun 2013 18:25:47 +0000 (13 11:25 -0700)
Changed UserAgent logic to test for 0 length, rather than null

src/adium/ESPurpleSIPEAccount.m

index 43ee4e3..1a48fa3 100644 (file)
@@ -144,7 +144,7 @@ extern void AILog(NSString *fmt, ...);
     purple_account_set_string(account, "authentication", [authScheme UTF8String]);
 
        NSString *userAgent = [self preferenceForKey:KEY_SIPE_USER_AGENT group:GROUP_ACCOUNT_STATUS];
-    purple_account_set_string(account, "useragent", (!userAgent.length) ?  [userAgent UTF8String] : "" );
+    purple_account_set_string(account, "useragent", (userAgent.length != 0) ?  [userAgent UTF8String] : "" );
 
     // Email preferences
     NSString *emailURL = [self preferenceForKey:KEY_SIPE_EMAIL_URL group:GROUP_ACCOUNT_STATUS];