/pidgin/main: 5ce3fe28942f: MXit: Fix incorrect return value fro...
Andrew Victor
andrew.victor at mxit.com
Wed Apr 3 05:38:59 EDT 2013
Changeset: 5ce3fe28942fc7c03f6e58dfb4e2a6b7115f123b
Author: Andrew Victor <andrew.victor at mxit.com>
Date: 2013-04-03 11:26 +0200
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/5ce3fe28942f
Description:
MXit: Fix incorrect return value from mxit_media_caps().
diffstat:
libpurple/protocols/mxit/protocol.c | 2 +-
libpurple/protocols/mxit/voicevideo.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff --git a/libpurple/protocols/mxit/protocol.c b/libpurple/protocols/mxit/protocol.c
--- a/libpurple/protocols/mxit/protocol.c
+++ b/libpurple/protocols/mxit/protocol.c
@@ -754,7 +754,7 @@ void mxit_send_login( struct MXitSession
/* Voice and Video supported */
if ( mxit_audio_enabled() && mxit_video_enabled() )
features |= ( MXIT_CF_VOICE | MXIT_CF_VIDEO );
- else if (mxit_audio_enabled())
+ else if ( mxit_audio_enabled() )
features |= MXIT_CF_VOICE;
/* generate client version string (eg, P-2.7.10-Y-PURPLE) */
diff --git a/libpurple/protocols/mxit/voicevideo.c b/libpurple/protocols/mxit/voicevideo.c
--- a/libpurple/protocols/mxit/voicevideo.c
+++ b/libpurple/protocols/mxit/voicevideo.c
@@ -96,7 +96,7 @@ PurpleMediaCaps mxit_media_caps(PurpleAc
/* and only when they're online */
if (contact->presence == MXIT_PRESENCE_OFFLINE)
- return MXIT_PRESENCE_OFFLINE;
+ return PURPLE_MEDIA_CAPS_NONE;
/* they support voice-only */
if (contact->capabilities & MXIT_PFLAG_VOICE)
More information about the Commits
mailing list