Mercurial > pidgin.yaz
comparison libpurple/purple-remote @ 24519:821afc095104
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.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 30 Nov 2008 18:34:42 +0000 |
parents | 815caea3bdd0 |
children | 46c0ca2b7b3b |
comparison
equal
deleted
inserted
replaced
24518:35037aa8c9c5 | 24519:821afc095104 |
---|---|
169 elif command == "getstatus": | 169 elif command == "getstatus": |
170 current = purple.PurpleSavedstatusGetCurrent() | 170 current = purple.PurpleSavedstatusGetCurrent() |
171 status_type = purple.PurpleSavedstatusGetType(current) | 171 status_type = purple.PurpleSavedstatusGetType(current) |
172 status_id = purple.PurplePrimitiveGetIdFromType(status_type) | 172 status_id = purple.PurplePrimitiveGetIdFromType(status_type) |
173 return status_id | 173 return status_id |
174 | |
175 elif command == "getstatusmessage": | |
176 current = purple.PurpleSavedstatusGetCurrent() | |
177 return purple.PurpleSavedstatusGetMessage(current) | |
174 | 178 |
175 elif command == "getinfo": | 179 elif command == "getinfo": |
176 account = findaccount(accountname, protocol) | 180 account = findaccount(accountname, protocol) |
177 connection = cpurple.PurpleAccountGetConnection(account) | 181 connection = cpurple.PurpleAccountGetConnection(account) |
178 return purple.ServGetInfo(connection, params["screenname"]) | 182 return purple.ServGetInfo(connection, params["screenname"]) |