Ejemplo n.º 1
0
  def logout(self, prpl, account):
    print "Logout "+prpl+" "+account
    
    if not is_connected(prpl, account):
      return result_error("Account not connected")

    pypurple.account_set_status(str(account), str("prpl-"+prpl), "offline")
    return {"result": "Success"}
Ejemplo n.º 2
0
  def change_status(self, prpl, account, status, message):
    print "Change status "+prpl+" "+account

    if not is_connected(prpl, account):
      return result_error("Account not connected")

    pypurple.account_set_status(str(account), str("prpl-"+prpl), str(status))
    pypurple.account_set_status_message(str(account), str("prpl-"+prpl), str(message))
    return {"result": "Success"}