An old update from Eion to return a clearer error message.
The original error message was "Not Authorized" but many users would say they
have the correct password, however in this particular check we know that the
server didn't like their credentials so we return "Invalid username or
password" instead.
Testing Done:
Compiled locally.
Bugs closed: PIDGIN-16437
Reviewed at https://reviews.imfreedom.org/r/502/
/*
* @file gtkblist.c GTK+ BuddyList API
* @ingroup pidgin
*/
/* pidgin
*
* Pidgin is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*
*/
#include"internal.h"
#include"pidgin.h"
#include"account.h"
#include"connection.h"
#include"core.h"
#include"debug.h"
#include"glibcompat.h"
#include"notify.h"
#include"prpl.h"
#include"prefs.h"
#include"plugin.h"
#include"request.h"
#include"signals.h"
#include"pidginstock.h"
#include"theme-loader.h"
#include"theme-manager.h"
#include"util.h"
#include"gtkaccount.h"
#include"gtkblist.h"
#include"gtkcellrendererexpander.h"
#include"gtkcertmgr.h"
#include"gtkconv.h"
#include"gtkdebug.h"
#include"gtkdialogs.h"
#include"gtkft.h"
#include"gtklog.h"
#include"gtkmenutray.h"
#include"gtkpounce.h"
#include"gtkplugin.h"
#include"gtkprefs.h"
#include"gtkprivacy.h"
#include"gtkroomlist.h"
#include"gtkstatusbox.h"
#include"gtkscrollbook.h"
#include"gtksmiley.h"
#include"gtkstyle.h"
#include"gtkblist-theme.h"
#include"gtkblist-theme-loader.h"
#include"gtkutils.h"
#include"pidgin/minidialog.h"
#include"pidgin/pidgintooltip.h"
#include<gdk/gdkkeysyms.h>
#include<gtk/gtk.h>
#include<gdk/gdk.h>
typedefstruct
{
PurpleAccount*account;
GtkWidget*window;
GtkBox*vbox;
GtkWidget*account_menu;
GtkSizeGroup*sg;
}PidginBlistRequestData;
typedefstruct
{
PidginBlistRequestDatarq_data;
GtkWidget*combo;
GtkWidget*entry;
GtkWidget*entry_for_alias;
GtkWidget*entry_for_invite;
}PidginAddBuddyData;
typedefstruct
{
PidginBlistRequestDatarq_data;
gchar*default_chat_name;
GList*entries;
}PidginChatData;
typedefstruct
{
PidginChatDatachat_data;
GtkWidget*alias_entry;
GtkWidget*group_combo;
GtkWidget*autojoin;
GtkWidget*persistent;
}PidginAddChatData;
typedefstruct
{
/** Used to hold error minidialogs. Gets packed
* inside PidginBuddyList.error_buttons
*/
PidginScrollBook*error_scrollbook;
/** Pointer to the mini-dialog about having signed on elsewhere, if one
* is showing; @c NULL otherwise.
*/
PidginMiniDialog*signed_on_elsewhere;
PidginBlistTheme*current_theme;
guintselect_page_timeout;/**< The timeout for pidgin_blist_select_notebook_page_cb */
char*msg=g_strdup_printf(ngettext("You have %d contact named %s. Would you like to merge them?","You currently have %d contacts named %s. Would you like to merge them?",i),i,alias);
purple_request_action(NULL,NULL,msg,_("Merging these contacts will cause them to share a single entry on the buddy list and use a single conversation window. "
"You can separate them again by choosing 'Expand' from the contact's context menu"),0,NULL,NULL,NULL,