From 912004256da4c60631aa72c3c8fe315cd82a568f Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Mon, 28 Aug 2006 14:07:04 +0000 Subject: allow either forms-based or older method of in-band registration (bzr r1650) --- src/pedro/pedroxmpp.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/pedro/pedroxmpp.cpp') 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 = "" -- cgit v1.2.3