MCPcopy Create free account
hub / github.com/ddnet/ddnet / InitConsole

Method InitConsole

src/engine/server/name_ban.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void CNameBans::InitConsole(IConsole *pConsole)
17{
18 m_pConsole = pConsole;
19
20 m_pConsole->Register("name_ban", "s[name] ?i[distance] ?i[is_substring] ?r[reason]", CFGFLAG_SERVER, ConNameBan, this, "Ban a certain nickname");
21 m_pConsole->Register("name_unban", "s[name]", CFGFLAG_SERVER, ConNameUnban, this, "Unban a certain nickname");
22 m_pConsole->Register("name_bans", "", CFGFLAG_SERVER, ConNameBans, this, "List all name bans");
23}
24
25void CNameBans::Ban(const char *pName, const char *pReason, const int Distance, const bool IsSubstring)
26{

Callers 1

RegisterCommandsMethod · 0.80

Calls 1

RegisterMethod · 0.45

Tested by

no test coverage detected