Hal De %!s(int64=4) %!d(string=hai) anos
pai
achega
b92fff359a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/app.py

+ 1 - 0
app/app.py

@@ -887,6 +887,7 @@ class SetPresenceState(Resource):
       return invalidState(state)
     if user not in app.cache['ustates']:
       return noUser(user)
+    app.logger.warning('state={}, getUserStateCombined({})={}'.format(state, user, getUserStateCombined(user)))
     if (state.lower() in ('available','not_set','away','xa','chat')) and (getUserStateCombined(user) == 'dnd'):
       result = await amiDBDel('DND', '{}'.format(user))
     result = await amiSetVar('PRESENCE_STATE(CustomPresence:{})'.format(user), state)