~ubuntu-branches/ubuntu/karmic/pidgin/karmic

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-02-23 18:30:20 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20090223183020-jmne1l61866atkd8
Tags: 1:2.5.4-2ubuntu1
* Merge from debian, remaining changes: (LP: #316636)
  - debian/control:
    + Add Build-Deps on liblaunchpad-integration-dev, intltool,
    network-manager-dev
    + Add epoch in dependencies
    + Drop the libpurple0 dependency on libpurple-bin
  - debian/libpurple0.symbols: add epoch to symbol
  - debian/pidgin-dbg.preinst, debian/pidgin-dev.preinst,
    debian/pidgin.preinst: add epoch
  - 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/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::
  - 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
    + 70_autoconf.patch
    + fix-icons-backport-from-2.5.5mtn.diff:
      Fix to see buddy icons for new Windows Live users.
      The patch will be included in pidgin-2.5.5 

Show diffs side-by-side

added added

removed removed

Lines of Context:
647
647
        presence = purple_buddy_get_presence(buddy);
648
648
        status = purple_presence_get_active_status(presence);
649
649
 
 
650
        /* Official client says media takes precedence over message */
 
651
        /* I say message take precedence over media! Plus prpl-jabber agrees
 
652
           too */
 
653
        msg = purple_status_get_attr_string(status, "message");
 
654
        if (msg && *msg)
 
655
                return g_markup_escape_text(msg, -1);
 
656
 
650
657
        if (purple_presence_is_status_primitive_active(presence, PURPLE_STATUS_TUNE)) {
651
658
                const char *title, *game, *office;
652
659
                char *media, *esc;
677
684
                return esc;
678
685
        }
679
686
 
680
 
        /* Official client says media takes precedence over message */
681
 
        msg = purple_status_get_attr_string(status, "message");
682
 
        if (msg && *msg)
683
 
                return g_markup_escape_text(msg, -1);
684
 
 
685
687
        return NULL;
686
688
}
687
689