From db52d4431c15134ca3f44dc2525549709620f547 Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 28 Aug 2006 14:07:04 +0000 Subject: [PATCH] allow either forms-based or older method of in-band registration --- src/pedro/pedroxmpp.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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 = "" -- 2.30.2