~vish/ubuntu/maverick/pidgin/bug25979

« back to all changes in this revision

Viewing changes to libpurple/protocols/msn/oim.c

  • Committer: Bazaar Package Importer
  • Author(s): Nick Andrik
  • Date: 2009-05-27 02:23:16 UTC
  • mfrom: (1.1.18 upstream) (2.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090527022316-xdj3a6svtqk7aojv
Tags: 1:2.5.6-1ubuntu1
* Merge from debian, remaining changes (LP: #380806 ):
  - Update debian/prefs.xml to set the notify plugin prefs
    /plugins/gtk/X11/notify/*, set /pidgin/plugins/loaded to load
    the notify plugin and enable the standard logging options by default
  - debian/patches:
    + 02_lpi.patch for LP integration
    + 04_let_crasher_for_apport.patch to stop catching the SIGSEGV signal
      and let apport handle it
    + 05_default_to_irc_ubuntu_com.patch to set the default IRC
      server to irc.ubuntu.com
    + 10_docklet_default_off.patch for default behavior to have no
      notification area icon.  This fixes (LP: #340366)
    + 11_buddy_list_really_show.patch to make it so that the buddy
      list tries harder to appear.  This fixes some issues with it
      not appearing.  (LP: #341142)
    + 12_rate_limit_aim_blist_warning.patch to rate limit popups when
      AIM buddy list is unavailable (LP: #345774)
    + 13_sounds_and_timers.patch which adjusts the time out for sounds
      to be 15 seconds, which helps get fewer spurious login
      notifications on slow connections.  Also, switches a few long
      term timers to _add_seconds to get a little bit of power savings.
      (LP: #345494)
    + 60_1024x600_gtk*.c.patch: Add scrolled bars into account dialog,
      pounce windows and preference window when screen height is less than 600.
    + 70_autoconf.patch
  - debian/control:
    + Drop the libpurple0 dependency on libpurple-bin
    + Add Build-Deps on liblaunchpad-integration-dev, intltool,
    network-manager-dev
    + Make finch conflict & replace old versions of gaim (closes: #440351)
    + Add epoch in dependencies
  - debian/libpurple0.symbols:
    + Add libgnt to symbols
    + Add epoch to versions
  - debian/pidgin-dbg.preinst, debian/pidgin-dev.preinst,
    debian/pidgin.preinst: Add epoch
  - debian/rules:
    + remove --disable-nm as nm has been fixed in Ubuntu
    + Add X-Ubuntu-Gettext-Domain to the desktop file and update the
      translation templates in common-install-impl::

Show diffs side-by-side

added added

removed removed

Lines of Context:
668
668
                if (tokens[1] != NULL)
669
669
                        from = (const char *)tokens[1];
670
670
 
671
 
                start = strchr(from, '<') + 1;
672
 
                end = strchr(from, '>');
673
 
                passport = g_strndup(start, end - start);
 
671
                start = strchr(from, '<');
 
672
                if (start != NULL) {
 
673
                        start++;
 
674
                        end = strchr(from, '>');
 
675
                        if (end != NULL)
 
676
                                passport = g_strndup(start, end - start);
 
677
                }
 
678
                if (passport == NULL)
 
679
                        passport = g_strdup(_("Unknown"));
674
680
 
675
681
                g_strfreev(tokens);
676
682
        }
764
770
        if (iu_node != NULL && purple_account_get_check_mail(session->account))
765
771
        {
766
772
                char *unread = xmlnode_get_data(iu_node);
767
 
                const char *passport = msn_user_get_passport(session->user);
768
 
                const char *url = session->passport_info.mail_url;
 
773
                const char *passports[2] = { msn_user_get_passport(session->user) };
 
774
                const char *urls[2] = { session->passport_info.mail_url };
769
775
                int count = atoi(unread);
770
776
 
771
777
                /* XXX/khc: pretty sure this is wrong */
772
778
                if (count > 0)
773
779
                        purple_notify_emails(session->account->gc, count, FALSE, NULL,
774
 
                                NULL, &passport, &url, NULL, NULL);
 
780
                                NULL, passports, urls, NULL, NULL);
775
781
                g_free(unread);
776
782
        }
777
783