Fix a crash that occurs when opening irc://-links to new servers on ports other than 6667.
authorThijs Alkemade <thijsalkemade@gmail.com>
Tue, 17 May 2011 00:00:31 +0200
changeset 3900 09afa7a64d97
parent 3899 b737e71520e4
child 3901 46f206912c4d
child 3904 fd2f8747430a
Fix a crash that occurs when opening irc://-links to new servers on ports other than 6667.

Fixes #15093
Source/AITemporaryIRCAccountWindowController.m
--- a/Source/AITemporaryIRCAccountWindowController.m	Wed May 04 10:23:27 2011 +0200
+++ b/Source/AITemporaryIRCAccountWindowController.m	Tue May 17 00:00:31 2011 +0200
@@ -75,7 +75,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];