changeset 29970:5c4e678e2956

Fix a warning.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 08 Mar 2010 05:57:15 +0000
parents 09f469cb19a8
children a0e90156741c
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 05:56:34 2010 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Mon Mar 08 05:57:15 2010 +0000
@@ -3315,7 +3315,7 @@
 	}
 }
 
-static void
+static PurpleCmdRet
 jabber_cmd_mood(PurpleConversation *conv,
 		const char *cmd, char **args, char **error, void *data)
 {
@@ -3335,7 +3335,10 @@
 		purple_conversation_write(conv, NULL,
 		    _("Account does not support PEP, can't set mood"),
 		    PURPLE_MESSAGE_ERROR, time(NULL));
+		return PURPLE_CMD_RET_FAILED;
 	}
+
+	return PURPLE_CMD_STATUS_OK;
 }
 
 void jabber_register_commands(void)