pidgin: f7a3e12c: jabber: Fix the type signature of jabber...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Mar 8 22:35:48 EST 2010


-----------------------------------------------------------------
Revision: f7a3e12cb13f23daa4985be10a119d54cbfb066b
Ancestor: 32fd5dc634af03170af15c3eb75545939bf05450
Author: darkrain42 at pidgin.im
Date: 2010-03-09T03:34:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f7a3e12cb13f23daa4985be10a119d54cbfb066b

Modified files:
        libpurple/protocols/jabber/jabber.c

ChangeLog: 

jabber: Fix the type signature of jabber_cmd_mood

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	052b99b5abf4056778ebd7ce87c29087ff4af95f
+++ libpurple/protocols/jabber/jabber.c	7aa3ded52e37b83ba1cd48f07eed1dbf02cd2c84
@@ -3315,7 +3315,7 @@ gboolean jabber_can_receive_file(PurpleC
 	}
 }
 
-static void
+static PurpleCmdRet
 jabber_cmd_mood(PurpleConversation *conv,
 		const char *cmd, char **args, char **error, void *data)
 {
@@ -3330,11 +3330,14 @@ jabber_cmd_mood(PurpleConversation *conv
 		} 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;
 	}
 }
 


More information about the Commits mailing list