diff --git a/libtransport/AdminInterface.cpp b/libtransport/AdminInterface.cpp index c0d2561c6877bd93f15b165eee62114f75342cd2..7eaaeb71285a1bbb3cda97dd3296a38ff73ec529 100644 --- a/libtransport/AdminInterface.cpp +++ b/libtransport/AdminInterface.cpp @@ -268,11 +268,16 @@ void AdminInterface::handleQuery(Swift::Message::ref message) { std::string body = msg; std::vector args; boost::split(args, body, boost::is_any_of(" ")); - if (args.size() == 4) { + if (args.size() == 4 || args.size() == 3) { UserInfo res; res.jid = args[1]; res.uin = args[2]; - res.password = args[3]; + if (args.size() == 3) { + res.password = args[3]; + } + else { + res.password = args[4]; + } res.language = "en"; res.encoding = "utf-8"; res.vip = 0;