Changeset - bf1cad516b2a
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-09-21 17:55:56
hanzz.k@gmail.com
Handle 'unregister' field also when it has text-single type
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/userregistration.cpp
Show inline comments
 
@@ -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;
 
			}
 

	
0 comments (0 inline, 0 general)