# HG changeset patch # User Richard Laager # Date 1225653291 0 # Node ID 88a66cb4a8d909be5368815c20694d83846fb1e3 # Parent 32ad012ef6acc1e721a1fdb6a24c099ecd809c34# Parent 41485746e2b959b38ad19a0828162926d92c0368 merge of '32cd8507d8b94418ca8f083d8555916341b47b94' and 'ca1b3ac908985d80ba2b86ef01bc4fcb4cf70fb7' diff -r 41485746e2b9 -r 88a66cb4a8d9 COPYRIGHT --- a/COPYRIGHT Sun Nov 02 18:39:39 2008 +0000 +++ b/COPYRIGHT Sun Nov 02 19:14:51 2008 +0000 @@ -287,6 +287,7 @@ Christopher O'Brien (siege) Peter O'Gorman Jon Oberheide +Marcos GarcĂ­a Ochoa Yusuke Odate Ruediger Oertel Gudmundur Bjarni Olafsson diff -r 41485746e2b9 -r 88a66cb4a8d9 libpurple/plugins/ssl/ssl-nss.c --- a/libpurple/plugins/ssl/ssl-nss.c Sun Nov 02 18:39:39 2008 +0000 +++ b/libpurple/plugins/ssl/ssl-nss.c Sun Nov 02 19:14:51 2008 +0000 @@ -757,7 +757,7 @@ crt_dat = X509_NSS_DATA(crt); g_return_val_if_fail(crt_dat, NULL); - return g_strdup(crt_dat->subjectName); + return g_strdup(crt_dat->issuerName); } static gchar * diff -r 41485746e2b9 -r 88a66cb4a8d9 libpurple/protocols/irc/irc.c --- a/libpurple/protocols/irc/irc.c Sun Nov 02 18:39:39 2008 +0000 +++ b/libpurple/protocols/irc/irc.c Sun Nov 02 19:14:51 2008 +0000 @@ -62,8 +62,6 @@ PurplePlugin *_irc_plugin = NULL; -static const char *status_chars = "@+%&"; - static void irc_view_motd(PurplePluginAction *action) { PurpleConnection *gc = (PurpleConnection *) action->context; @@ -518,10 +516,7 @@ char *plain; const char *args[2]; - if (strchr(status_chars, *who) != NULL) - args[0] = who + 1; - else - args[0] = who; + args[0] = irc_nick_skip_mode(irc, who); purple_markup_html_to_xhtml(what, NULL, &plain); args[1] = plain; diff -r 41485746e2b9 -r 88a66cb4a8d9 libpurple/protocols/irc/irc.h --- a/libpurple/protocols/irc/irc.h Sun Nov 02 18:39:39 2008 +0000 +++ b/libpurple/protocols/irc/irc.h Sun Nov 02 19:14:51 2008 +0000 @@ -109,6 +109,8 @@ char *irc_mirc2html(const char *string); char *irc_mirc2txt(const char *string); +const char *irc_nick_skip_mode(struct irc_conn *irc, const char *string); + gboolean irc_ischannel(const char *string); void irc_register_commands(void); diff -r 41485746e2b9 -r 88a66cb4a8d9 libpurple/protocols/irc/parse.c --- a/libpurple/protocols/irc/parse.c Sun Nov 02 18:39:39 2008 +0000 +++ b/libpurple/protocols/irc/parse.c Sun Nov 02 19:14:51 2008 +0000 @@ -497,6 +497,19 @@ return result; } +const char *irc_nick_skip_mode(struct irc_conn *irc, const char *nick) +{ + static const char *default_modes = "@+%&"; + const char *mode_chars; + + mode_chars = irc->mode_chars ? irc->mode_chars : default_modes; + + while (strchr(mode_chars, *nick) != NULL) + nick++; + + return nick; +} + gboolean irc_ischannel(const char *string) { return (string[0] == '#' || string[0] == '&'); diff -r 41485746e2b9 -r 88a66cb4a8d9 libpurple/protocols/qq/buddy_info.c --- a/libpurple/protocols/qq/buddy_info.c Sun Nov 02 18:39:39 2008 +0000 +++ b/libpurple/protocols/qq/buddy_info.c Sun Nov 02 19:14:51 2008 +0000 @@ -69,9 +69,9 @@ }; static const gchar *genders_zh[] = { - N_("-"), - N_("\xc4\xd0"), - N_("\xc5\xae"), + "-", + "\xc4\xd0", + "\xc5\xae", }; #define QQ_FACES 134 diff -r 41485746e2b9 -r 88a66cb4a8d9 pidgin/gtkaccount.c --- a/pidgin/gtkaccount.c Sun Nov 02 18:39:39 2008 +0000 +++ b/pidgin/gtkaccount.c Sun Nov 02 19:14:51 2008 +0000 @@ -562,7 +562,8 @@ /* Set the fields. */ if (dialog->account != NULL) { - if (purple_account_get_password(dialog->account)) + if (purple_account_get_password(dialog->account) && + purple_account_get_remember_password(dialog->account)) gtk_entry_set_text(GTK_ENTRY(dialog->password_entry), purple_account_get_password(dialog->account)); diff -r 41485746e2b9 -r 88a66cb4a8d9 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Sun Nov 02 18:39:39 2008 +0000 +++ b/pidgin/gtkblist.c Sun Nov 02 19:14:51 2008 +0000 @@ -7050,7 +7050,7 @@ pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("_Group:"), data->sg, data->group_combo, TRUE, NULL); data->autojoin = gtk_check_button_new_with_mnemonic(_("Auto_join when account becomes online.")); - data->persistent = gtk_check_button_new_with_mnemonic(_("_Hide chat when the window is closed.")); + data->persistent = gtk_check_button_new_with_mnemonic(_("_Remain in chat after window is closed.")); gtk_box_pack_start(GTK_BOX(vbox), data->autojoin, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), data->persistent, FALSE, FALSE, 0); diff -r 41485746e2b9 -r 88a66cb4a8d9 pidgin/gtkconn.c --- a/pidgin/gtkconn.c Sun Nov 02 18:39:39 2008 +0000 +++ b/pidgin/gtkconn.c Sun Nov 02 19:14:51 2008 +0000 @@ -208,7 +208,10 @@ while (l) { PurpleAccount *a = (PurpleAccount*)l->data; if (!purple_account_is_disconnected(a)) { + char *password = g_strdup(purple_account_get_password(a)); purple_account_disconnect(a); + purple_account_set_password(a, password); + g_free(password); } l = l->next; } diff -r 41485746e2b9 -r 88a66cb4a8d9 pidgin/gtksound.c --- a/pidgin/gtksound.c Sun Nov 02 18:39:39 2008 +0000 +++ b/pidgin/gtksound.c Sun Nov 02 19:14:51 2008 +0000 @@ -450,7 +450,7 @@ if (!sound_cmd || *sound_cmd == '\0') { purple_debug_error("gtksound", "'Command' sound method has been chosen, " - "but no command has been set."); + "but no command has been set.\n"); return; } diff -r 41485746e2b9 -r 88a66cb4a8d9 po/POTFILES.in --- a/po/POTFILES.in Sun Nov 02 18:39:39 2008 +0000 +++ b/po/POTFILES.in Sun Nov 02 19:14:51 2008 +0000 @@ -145,7 +145,6 @@ libpurple/protocols/qq/qq_network.c libpurple/protocols/qq/qq_process.c libpurple/protocols/qq/send_file.c -libpurple/protocols/qq/sys_msg.c libpurple/protocols/sametime/sametime.c libpurple/protocols/silc/buddy.c libpurple/protocols/silc/chat.c