Skip to content
Permalink
Browse files

Updated debug hook restrictions

  • Loading branch information
ccw808 committed Aug 14, 2019
1 parent 2a294ea commit c41e0fded204feb7e6f0ac51084c13557210188a
Showing with 6 additions and 8 deletions.
  1. +6 −8 Shared/mods/deathmatch/logic/CDebugHookManager.cpp
@@ -26,27 +26,25 @@
///////////////////////////////////////////////////////////////
CDebugHookManager::CDebugHookManager()
{
#ifndef MTA_CLIENT
m_MaskArgumentsMap = {
#ifndef MTA_CLIENT
{"logIn", {{EArgType::Password, 2}}}, // player, account, 2=PASSWORD
{"addAccount", {{EArgType::Password, 1}}}, // name, 1=PASSWORD
{"getAccount", {{EArgType::Password, 1}}}, // name, 1=PASSWORD
{"setAccountPassword", {{EArgType::Password, 1}}}, // account, 1=PASSWORD
{"fetchRemote", {{EArgType::MaxArgs, 1}, {EArgType::Url, 0}}}, // 0=URL, ...
{"callRemote", {{EArgType::MaxArgs, 1}, {EArgType::Url, 0}}}, // 0=URL, ...
{"dbConnect", {{EArgType::MaxArgs, 0}}},
{"dbExec", {{EArgType::MaxArgs, 0}}},
{"dbFree", {{EArgType::MaxArgs, 0}}},
{"dbPoll", {{EArgType::MaxArgs, 0}}},
{"dbPrepareString", {{EArgType::MaxArgs, 0}}},
{"dbQuery", {{EArgType::MaxArgs, 0}}},
{"executeSQLQuery", {{EArgType::MaxArgs, 0}}},
};
#else
m_MaskArgumentsMap = {
{"fetchRemote", {{EArgType::MaxArgs, 1}, {EArgType::Url, 0}}}, // 0=URL, ...
};
{"callRemote", {{EArgType::MaxArgs, 1}, {EArgType::Url, 0}}}, // 0=URL, ...
#endif
{"fetchRemote", {{EArgType::MaxArgs, 1}, {EArgType::Url, 0}}}, // 0=URL, ...
{"passwordHash", {{EArgType::Password, 0}}}, // 0=PASSWORD, ...
{"passwordVerify", {{EArgType::Password, 0}}}, // 0=PASSWORD, ...
};
}

///////////////////////////////////////////////////////////////

0 comments on commit c41e0fd

Please sign in to comment.
You can’t perform that action at this time.