adium-1.4 3489:9d991f3efd80: Fix a crash that occurs when openin...

commits at adium.im commits at adium.im
Mon May 16 22:03:50 UTC 2011


details:	http://hg.adium.im/adium-1.4/rev/9d991f3efd80
revision:	3489:9d991f3efd80
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Tue May 17 00:00:31 2011 +0200

Fix a crash that occurs when opening irc://-links to new servers on ports other than 6667.

Fixes #15093
(transplanted from 09afa7a64d9722054d951fa28accca842116271d)

diffs (12 lines):

diff -r a0e70ba938f5 -r 9d991f3efd80 Source/AITemporaryIRCAccountWindowController.m
--- a/Source/AITemporaryIRCAccountWindowController.m	Sun May 08 22:21:51 2011 +0200
+++ b/Source/AITemporaryIRCAccountWindowController.m	Tue May 17 00:00:31 2011 +0200
@@ -66,7 +66,7 @@
 	
 	[textField_explanation setStringValue:[NSString stringWithFormat:AILocalizedString(@"You need to create a new IRC account to connect to irc://%@%@/%@:", nil),
 										   server,
-										   (port == 6667 ? @"" : [NSString stringWithFormat:@":%@", port]),
+										   (port == 6667 ? @"" : [NSString stringWithFormat:@":%d", port]),
 										   channel]];
 	
 	[textField_server setStringValue:server];




More information about the commits mailing list