# HG changeset patch # User Evan Schoenberg # Date 1201831073 0 # Node ID 0b11bc87b9a12c8a4286970b2484e72a200ad054 # Parent 71e27bc2e82bc3b34e2129e0c6c564c2801d4bbf Don't tell the user to check the debug log if debug logging isn't enabled. diff -r 71e27bc2e82b -r 0b11bc87b9a1 libpurple/protocols/qq/login_logout.c --- a/libpurple/protocols/qq/login_logout.c Fri Feb 01 01:00:36 2008 +0000 +++ b/libpurple/protocols/qq/login_logout.c Fri Feb 01 01:57:53 2008 +0000 @@ -485,11 +485,15 @@ PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED, _("Incorrect password.")); break; case QQ_LOGIN_REPLY_MISC_ERROR: - purple_connection_error_reason(gc, - PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unable to login, check debug log")); + if (purple_debug_is_enabled()) + purple_connection_error_reason(gc, + PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unable to login. Check debug log.")); + else + purple_connection_error_reason(gc, + PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unable to login")); break; case QQ_LOGIN_REPLY_OK: - purple_debug(PURPLE_DEBUG_INFO, "QQ", "Login replys OK, everything is fine\n"); + purple_debug(PURPLE_DEBUG_INFO, "QQ", "Login repliess OK; everything is fine\n"); break; case QQ_LOGIN_REPLY_REDIRECT: /* the redirect has been done in _qq_process_login_reply */