ConVoteUnMute -> ConVoteUnmute

This commit is contained in:
Ryozuki 2019-03-19 20:18:11 +01:00
parent d469654629
commit 43a1990e5d
No known key found for this signature in database
GPG key ID: 848FCC08E5B89681
3 changed files with 6 additions and 6 deletions

View file

@ -42,7 +42,7 @@ CONSOLE_COMMAND("set_team_ddr", "v[id] ?i[team]", CFGFLAG_SERVER, ConSetDDRTeam,
CONSOLE_COMMAND("uninvite", "v[id] ?i[team]", CFGFLAG_SERVER, ConUninvite, this, "Uninvite player from team") CONSOLE_COMMAND("uninvite", "v[id] ?i[team]", CFGFLAG_SERVER, ConUninvite, this, "Uninvite player from team")
CONSOLE_COMMAND("vote_mute", "v[id] i[seconds]", CFGFLAG_SERVER, ConVoteMute, this, "Remove v's right to vote for i seconds") CONSOLE_COMMAND("vote_mute", "v[id] i[seconds]", CFGFLAG_SERVER, ConVoteMute, this, "Remove v's right to vote for i seconds")
CONSOLE_COMMAND("vote_unmute", "v[id]", CFGFLAG_SERVER, ConVoteUnMute, this, "Give back v's right to vote.") CONSOLE_COMMAND("vote_unmute", "v[id]", CFGFLAG_SERVER, ConVoteUnmute, this, "Give back v's right to vote.")
CONSOLE_COMMAND("mute", "", CFGFLAG_SERVER, ConMute, this, "") CONSOLE_COMMAND("mute", "", CFGFLAG_SERVER, ConMute, this, "")
CONSOLE_COMMAND("muteid", "v[id] i[seconds]", CFGFLAG_SERVER, ConMuteID, this, "") CONSOLE_COMMAND("muteid", "v[id] i[seconds]", CFGFLAG_SERVER, ConMuteID, this, "")
CONSOLE_COMMAND("muteip", "s[ip] i[seconds]", CFGFLAG_SERVER, ConMuteIP, this, "") CONSOLE_COMMAND("muteip", "s[ip] i[seconds]", CFGFLAG_SERVER, ConMuteIP, this, "")

View file

@ -385,7 +385,7 @@ bool CGameContext::VoteMute(const NETADDR *pAddr, int Secs, const char *pDisplay
return Found; return Found;
} }
bool CGameContext::VoteUnMute(const NETADDR *pAddr, const char *pDisplayName, int AuthedID) bool CGameContext::VoteUnmute(const NETADDR *pAddr, const char *pDisplayName, int AuthedID)
{ {
for(int i = 0; i < m_NumVoteMutes; i++) for(int i = 0; i < m_NumVoteMutes; i++)
{ {
@ -472,7 +472,7 @@ void CGameContext::ConVoteMute(IConsole::IResult *pResult, void *pUserData)
} }
} }
void CGameContext::ConVoteUnMute(IConsole::IResult *pResult, void *pUserData) void CGameContext::ConVoteUnmute(IConsole::IResult *pResult, void *pUserData)
{ {
CGameContext *pSelf = (CGameContext *)pUserData; CGameContext *pSelf = (CGameContext *)pUserData;
int Victim = pResult->GetVictim(); int Victim = pResult->GetVictim();
@ -486,7 +486,7 @@ void CGameContext::ConVoteUnMute(IConsole::IResult *pResult, void *pUserData)
NETADDR Addr; NETADDR Addr;
pSelf->Server()->GetClientAddr(Victim, &Addr); pSelf->Server()->GetClientAddr(Victim, &Addr);
bool Found = pSelf->VoteUnMute(&Addr, pSelf->Server()->ClientName(Victim), pResult->m_ClientID); bool Found = pSelf->VoteUnmute(&Addr, pSelf->Server()->ClientName(Victim), pResult->m_ClientID);
if(Found) if(Found)
{ {
char aBuf[128]; char aBuf[128];

View file

@ -353,7 +353,7 @@ private:
static void ConProtectedKill(IConsole::IResult *pResult, void *pUserData); static void ConProtectedKill(IConsole::IResult *pResult, void *pUserData);
static void ConVoteMute(IConsole::IResult *pResult, void *pUserData); static void ConVoteMute(IConsole::IResult *pResult, void *pUserData);
static void ConVoteUnMute(IConsole::IResult *pResult, void *pUserData); static void ConVoteUnmute(IConsole::IResult *pResult, void *pUserData);
static void ConMute(IConsole::IResult *pResult, void *pUserData); static void ConMute(IConsole::IResult *pResult, void *pUserData);
static void ConMuteID(IConsole::IResult *pResult, void *pUserData); static void ConMuteID(IConsole::IResult *pResult, void *pUserData);
static void ConMuteIP(IConsole::IResult *pResult, void *pUserData); static void ConMuteIP(IConsole::IResult *pResult, void *pUserData);
@ -389,7 +389,7 @@ private:
int m_NumVoteMutes; int m_NumVoteMutes;
void Mute(const NETADDR *pAddr, int Secs, const char *pDisplayName); void Mute(const NETADDR *pAddr, int Secs, const char *pDisplayName);
bool VoteMute(const NETADDR *pAddr, int Secs, const char *pDisplayName, int AuthedID); bool VoteMute(const NETADDR *pAddr, int Secs, const char *pDisplayName, int AuthedID);
bool VoteUnMute(const NETADDR *pAddr, const char *pDisplayName, int AuthedID); bool VoteUnmute(const NETADDR *pAddr, const char *pDisplayName, int AuthedID);
void Whisper(int ClientID, char *pStr); void Whisper(int ClientID, char *pStr);
void WhisperID(int ClientID, int VictimID, char *pMessage); void WhisperID(int ClientID, int VictimID, char *pMessage);
void Converse(int ClientID, char *pStr); void Converse(int ClientID, char *pStr);