i want to include raw manager from zion and i have problem with getting parametes. i have something like this:
in user.cpp
Code: Select all
const string Identity::formattedRawCommand(const string& aRawCommand, const string& file, const string& c) {
// if(!getProtectedUser()) {
SettingsManager::getInstance()->set(SettingsManager::TOTAL_RAW_COMMANDS_SENT, SETTING(TOTAL_RAW_COMMANDS_SENT) + 1);
StringMap ucParams;
ucParams["file"] = file;
ucParams["adl"] = c;
getParams(ucParams, "user", true);
string rawCommand = Util::formatParams(aRawCommand, ucParams, false);
// if(BOOLSETTING(LOG_RAW_COMMANDS)) { logRawCommand(rawCommand); }
return rawCommand;
// }
// return Util::emptyString;
}
Code: Select all
(...)
OnlineUser* ou = NULL;
string raw = ou->getIdentity().formattedRawCommand(i->getRaw(), file, c)
//if(!BOOLSETTING(USE_SEND_DELAYED_RAW)) {
time += (i->getTime() * 1000) + 1;
RawManager::getInstance()->addRaw(time, raw, this);
what shoul i do, to format raw command?
thanks.