Handle 'unregister' field also when it has text-single type
This commit is contained in:
parent
40dbe667be
commit
bf1cad516b
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue