changeset 25231:3a2b95c12396

2008.12.28 - flos <lonicerae(at)gmail.com> * Fixes #7908
author SHiNE CsyFeK <csyfek@gmail.com>
date Sat, 27 Dec 2008 18:42:19 +0000
parents 1732b4c6379b
children effbf24b39b1
files libpurple/protocols/qq/ChangeLog libpurple/protocols/qq/qq_network.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/qq/ChangeLog	Sat Dec 27 17:51:45 2008 +0000
+++ b/libpurple/protocols/qq/ChangeLog	Sat Dec 27 18:42:19 2008 +0000
@@ -1,3 +1,6 @@
+2008.12.28 - flos <lonicerae(at)gmail.com>
+	* Fixes #7908
+
 2008.12.28 - flos <lonicerae(at)gmail.com>
 	* References #7908
 
--- a/libpurple/protocols/qq/qq_network.c	Sat Dec 27 17:51:45 2008 +0000
+++ b/libpurple/protocols/qq/qq_network.c	Sat Dec 27 18:42:19 2008 +0000
@@ -219,10 +219,14 @@
 	if (NULL != segments[1]) {
 		port = atoi(segments[1]);
 		if (port <= 0) {
-			purple_debug_info("QQ", "Port not define in %s\n", qd->curr_server);
+			purple_debug_info("QQ", "Port not define in %s, use default.\n", qd->curr_server);
 			port = QQ_DEFAULT_PORT;
 		}
+	} else {
+		purple_debug_info("QQ", "Error splitting server string: %s, setting port to default.\n", qd->curr_server);
+		port = QQ_DEFAULT_PORT;
 	}
+
 	g_strfreev(segments);
 
 	qd->connect_retry--;