core: fixup client new_id handling

This commit is contained in:
Vaxry 2024-09-19 22:38:51 +01:00
parent f68f159255
commit 4d3d80fcb1

View file

@ -114,7 +114,7 @@ std::string WPTypeToCType(const SRequestArgument& arg, bool event /* events pass
} }
// iface // iface
if (!arg.interface.empty() && event) { if (!arg.interface.empty() && (event || clientCode)) {
for (auto& i : XMLDATA.ifaces) { for (auto& i : XMLDATA.ifaces) {
if (i.name == arg.interface) if (i.name == arg.interface)
return camelize((clientCode ? "CC_" : "C_") + arg.interface + "*"); return camelize((clientCode ? "CC_" : "C_") + arg.interface + "*");