changeset 29556:342ed5917f56

jabber: Fix the type signature of jabber_cmd_mood
author Paul Aurich <paul@darkrain42.org>
date Tue, 09 Mar 2010 03:34:03 +0000
parents 8afc47597413
children a694731e8b3f
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Mon Mar 08 22:53:02 2010 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Tue Mar 09 03:34:03 2010 +0000
@@ -3315,7 +3315,7 @@
 	}
 }
 
-static void
+static PurpleCmdRet
 jabber_cmd_mood(PurpleConversation *conv,
 		const char *cmd, char **args, char **error, void *data)
 {
@@ -3330,11 +3330,14 @@
 		} else {
 			jabber_mood_set(js, args[0], args[1]);
 		}
+
+		return PURPLE_CMD_RET_OK;
 	} else {
 		/* account does not support PEP, can't set a mood */
 		purple_conversation_write(conv, NULL,
 		    _("Account does not support PEP, can't set mood"),
 		    PURPLE_MESSAGE_ERROR, time(NULL));
+		return PURPLE_CMD_RET_FAILED;
 	}
 }