comparison libpurple/purple-remote @ 18106:40d51793f2d7

propagate from branch 'im.pidgin.pidgin.2.1.0' (head d8c7c08339ae468cb4298f6850eb7d3b760ad7b5) to branch 'im.pidgin.pidgin' (head 7f1ffdbda951c2effec7bfbfa8148e9ce98e7669)
author Sean Egan <seanegan@gmail.com>
date Fri, 15 Jun 2007 19:34:24 +0000
parents 6b7b13adb9b1
children b9a6272f4039
comparison
equal deleted inserted replaced
17938:9564b55f3c18 18106:40d51793f2d7
154 saved = purple.PurpleSavedstatusNew("", status_type) 154 saved = purple.PurpleSavedstatusNew("", status_type)
155 purple.PurpleSavedstatusSetMessage(saved, message) 155 purple.PurpleSavedstatusSetMessage(saved, message)
156 purple.PurpleSavedstatusActivate(saved) 156 purple.PurpleSavedstatusActivate(saved)
157 157
158 return None 158 return None
159
160 elif command == "getstatus":
161 current = purple.PurpleSavedstatusGetCurrent()
162 status_type = purple.PurpleSavedstatusGetType(current)
163 status_id = purple.PurplePrimitiveGetIdFromType(status_type)
164 return status_id
159 165
160 elif command == "getinfo": 166 elif command == "getinfo":
161 account = findaccount(accountname, protocol) 167 account = findaccount(accountname, protocol)
162 connection = cpurple.PurpleAccountGetConnection(account) 168 connection = cpurple.PurpleAccountGetConnection(account)
163 return purple.ServGetInfo(connection, params["screenname"]) 169 return purple.ServGetInfo(connection, params["screenname"])