# HG changeset patch # User Norbert Buchmuller # Date 1180899256 0 # Node ID c168d1ae20124ec7ebdfccef6d8c74a14dd5edf8 # Parent 2a6fb7c6d03050ddf2115c07a70c0d24828b3b79 A patch from Norbert Buchmuller: "There's a 'setstatus' command implemented in 'gaim-remote', but there's no 'getstatus'. For some tasks (eg. setting status to 'offline' on hibernation and restoring it on resume) it would be useful if such command existed." I'm not sure if we're considering this API or not. committer: Richard Laager diff -r 2a6fb7c6d030 -r c168d1ae2012 COPYRIGHT --- a/COPYRIGHT Sun Jun 03 00:48:00 2007 +0000 +++ b/COPYRIGHT Sun Jun 03 19:34:16 2007 +0000 @@ -51,6 +51,7 @@ Jeremy Brooks Jonathan Brossard Philip Brown +Norbert Buchmuller Sean Burke Thomas Butter Trevor Caira diff -r 2a6fb7c6d030 -r c168d1ae2012 ChangeLog.API --- a/ChangeLog.API Sun Jun 03 00:48:00 2007 +0000 +++ b/ChangeLog.API Sun Jun 03 19:34:16 2007 +0000 @@ -17,6 +17,7 @@ should not be auto-linkified * OPT_PROTO_SLASH_COMMANDS_NATIVE protocol option to indicate that slash commands are "native" to the protocol + * getstatus command for purple-remote version 2.0.0 (5/3/2007): Please note all functions, defines, and data structures have been diff -r 2a6fb7c6d030 -r c168d1ae2012 libpurple/purple-remote --- a/libpurple/purple-remote Sun Jun 03 00:48:00 2007 +0000 +++ b/libpurple/purple-remote Sun Jun 03 19:34:16 2007 +0000 @@ -159,6 +159,12 @@ return None + elif command == "getstatus": + current = purple.PurpleSavedstatusGetCurrent() + status_type = purple.PurpleSavedstatusGetType(current) + status_id = purple.PurplePrimitiveGetIdFromType(status_type) + return status_id + elif command == "getinfo": account = findaccount(accountname, protocol) connection = cpurple.PurpleAccountGetConnection(account)