From bf1cad516b2a1d62484af67c45279b314debaf7d Mon Sep 17 00:00:00 2001 From: HanzZ Date: Fri, 21 Sep 2012 17:55:56 +0200 Subject: [PATCH] Handle 'unregister' field also when it has text-single type --- src/userregistration.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; }