summaryrefslogtreecommitdiff
path: root/modules/extra
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra')
-rw-r--r--modules/extra/m_xmlrpc_main.cpp6
-rw-r--r--modules/extra/webcpanel/webcpanel.cpp5
2 files changed, 2 insertions, 9 deletions
diff --git a/modules/extra/m_xmlrpc_main.cpp b/modules/extra/m_xmlrpc_main.cpp
index cd7b68967..90c8fdc5d 100644
--- a/modules/extra/m_xmlrpc_main.cpp
+++ b/modules/extra/m_xmlrpc_main.cpp
@@ -86,11 +86,7 @@ class MyXMLRPCEvent : public XMLRPCEvent
}
reply(out);
- CommandSource source(user, NULL, na ? *na->nc : NULL, &reply);
- source.c = NULL;
- source.owner = bi;
- source.service = bi;
-
+ CommandSource source(user, NULL, na ? *na->nc : NULL, &reply, bi);
RunCommand(source, command);
if (!out.empty())
diff --git a/modules/extra/webcpanel/webcpanel.cpp b/modules/extra/webcpanel/webcpanel.cpp
index 460efba3a..b6b2d5776 100644
--- a/modules/extra/webcpanel/webcpanel.cpp
+++ b/modules/extra/webcpanel/webcpanel.cpp
@@ -214,10 +214,7 @@ namespace WebPanel
}
my_reply(r);
- CommandSource source(user, NULL, nc, &my_reply);
- source.owner = bi;
- source.service = bi;
-
+ CommandSource source(user, NULL, nc, &my_reply, bi);
cmd->Execute(source, params);
}
}