diff options
Diffstat (limited to 'modules/extra/xmlrpc.cpp')
-rw-r--r-- | modules/extra/xmlrpc.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/extra/xmlrpc.cpp b/modules/extra/xmlrpc.cpp index 24f5f5f0e..3e6a8af76 100644 --- a/modules/extra/xmlrpc.cpp +++ b/modules/extra/xmlrpc.cpp @@ -324,12 +324,14 @@ public: for (int i = 0; i < modconf.CountBlock("token"); ++i) { const auto &block = modconf.GetBlock("token", i); - const auto &token = block.Get<const Anope::string>("token"); - if (!token.empty()) + + RPC::Token token; + token.token = block.Get<const Anope::string>("token"); + if (!token.token.empty()) { - std::vector<Anope::string> methods; - spacesepstream(block.Get<const Anope::string>("methods")).GetTokens(methods); - xmlrpcinterface.tokens.emplace(token, methods); + token.token_hash = block.Get<const Anope::string>("token_hash"); + spacesepstream(block.Get<const Anope::string>("methods")).GetTokens(token.methods); + xmlrpcinterface.tokens.emplace_back(token); } } |