Handle 'unregister' field also when it has text-single type

This commit is contained in:
HanzZ 2012-09-21 17:55:56 +02:00
parent 40dbe667be
commit bf1cad516b

View file

@ -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;
}