From 23e59d9f2c69c26f8e5c0f7c5255731fe29e32a2 Mon Sep 17 00:00:00 2001 From: Tim Gunter Date: Fri, 28 Jul 2017 09:08:40 -0400 Subject: Allow calls to XMLRPC to impersonate supplied user, if online --- modules/m_xmlrpc_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/m_xmlrpc_main.cpp b/modules/m_xmlrpc_main.cpp index 3969cab59..57b599ce4 100644 --- a/modules/m_xmlrpc_main.cpp +++ b/modules/m_xmlrpc_main.cpp @@ -108,7 +108,8 @@ class MyXMLRPCEvent : public XMLRPCEvent } reply(out); - CommandSource source(user, NULL, na ? *na->nc : NULL, &reply, bi); + User *u = User::Find(user, true); + CommandSource source(user, u, na ? *na->nc : NULL, &reply, bi); Command::Run(source, command); if (!out.empty()) -- cgit