diff --git a/src/userregistration.cpp b/src/userregistration.cpp index 1fbdd82d..a13006ca 100644 --- a/src/userregistration.cpp +++ b/src/userregistration.cpp @@ -316,6 +316,12 @@ bool UserRegistration::handleSetRequest(const Swift::JID& from, const Swift::JID else if (textSingle->getName() == "local_password") { local_password = textSingle->getValue(); } + // Pidgin sends it as textSingle, not sure why... + else if (textSingle->getName() == "unregister") { + if (textSingle->getValue() == "1" || textSingle->getValue() == "true") { + payload->setRemove(true); + } + } continue; }