MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / addKey

Method addKey

plugins/plugin_utils/plugin_HTTP.cpp:697–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697void Templateiser::addKey(const char* key, TemplateKeyCallback callback) {
698 if (!key || !callback) {
699 return;
700 }
701
702 std::string k;
703 tolower(key, k);
704
705 keyFuncCallbacks[k] = callback;
706 ClassMap::iterator itr = keyClassCallbacks.find(k);
707 if (itr != keyClassCallbacks.end()) {
708 keyClassCallbacks.erase(itr);
709 }
710}
711
712void Templateiser::addKey(const char* key, TemplateCallbackClass* callback) {
713 if (!key || !callback) {

Callers 15

initMethod · 0.80
initMethod · 0.80
setupAuthMethod · 0.80
LogLoopMethod · 0.80
PlayerLoopMethod · 0.80
NavLoopMethod · 0.80
VarsLoopMethod · 0.80
PermsLoopMethod · 0.80
ChatLoopMethod · 0.80
IPBanLoopMethod · 0.80
HostBanLoopMethod · 0.80
IDBanLoopMethod · 0.80

Calls 3

tolowerFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected