Patch from 'jfd' (whose trac user account no longer exists) to implement

Sun, 30 Nov 2008 18:34:42 +0000

author
John Bailey <rekkanoryo@rekkanoryo.org>
date
Sun, 30 Nov 2008 18:34:42 +0000
changeset 24836
fa1d0f63ea45
parent 24835
e48e895c5f31
child 24837
3a0a61bf3355
child 25957
b03de9a59dc2
child 26009
77febebf334c

Patch from 'jfd' (whose trac user account no longer exists) to implement
a purple-remote command to get the status message. I changed the command to
"getstatusmessage" since that made more sense than "getmessage". Fixes #5598.

libpurple/purple-remote file | annotate | diff | comparison | revisions
--- a/libpurple/purple-remote	Sun Nov 30 03:47:30 2008 +0000
+++ b/libpurple/purple-remote	Sun Nov 30 18:34:42 2008 +0000
@@ -172,6 +172,10 @@
         status_id = purple.PurplePrimitiveGetIdFromType(status_type)
         return status_id
 
+    elif command == "getstatusmessage":
+        current = purple.PurpleSavedstatusGetCurrent()
+        return purple.PurpleSavedstatusGetMessage(current)
+
     elif command == "getinfo":
         account = findaccount(accountname, protocol)
         connection = cpurple.PurpleAccountGetConnection(account)

mercurial