From: ishmal Date: Mon, 28 Aug 2006 14:07:04 +0000 (+0000) Subject: allow either forms-based or older method of in-band registration X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db52d4431c15134ca3f44dc2525549709620f547;p=inkscape.git allow either forms-based or older method of in-band registration --- diff --git a/src/pedro/pedroxmpp.cpp b/src/pedro/pedroxmpp.cpp index b882b9ab9..398e6722b 100644 --- a/src/pedro/pedroxmpp.cpp +++ b/src/pedro/pedroxmpp.cpp @@ -1550,7 +1550,7 @@ bool XmppClient::inBandRegistrationNew() Element *elem = parser.parse(recbuf); //elem->print(); - //# does the entity send the "instructions" tag? + //# does the entity send the newer "instructions" tag? std::vector fields = elem->findElements("field"); std::vector fnames; for (unsigned int i=0; ifindElements("username").size() == 0 || + elem->findElements("password").size() == 0) + { + error("server did not offer registration"); + delete elem; + return false; + } } + delete elem; fmt = ""