Add command to change password of logged in user

This commit is contained in:
Thorben Günther
2021-03-11 13:56:06 +01:00
parent 71236a0d5a
commit b0aea2bcff
9 changed files with 138 additions and 1 deletions

View File

@@ -451,6 +451,19 @@ connection_get_barejid(void)
return result;
}
char*
connection_get_user(void)
{
const char* jid = connection_get_fulljid();
char* result;
result = strdup(jid);
char* split = strchr(result, '@');
*split = '\0';
return result;
}
void
connection_features_received(const char* const jid)
{