Пример #1
0
void CChatChanMember::DontIgnore(LPCTSTR pszName)
{
	ADDTOCALLSTACK("CChatChanMember::DontIgnore");
	if (IsIgnoring(pszName))
		ToggleIgnore(pszName);
	else
		SendChatMsg(CHATMSG_NotIgnoring, pszName);
}
Пример #2
0
void CChatMember::RemoveIgnore(LPCTSTR pszName)
{
	ADDTOCALLSTACK("CChatMember::RemoveIgnore");
	if ( !IsIgnoring(pszName) )
		SendChatMsg(CHATMSG_NotIgnoring, pszName);
	else
		ToggleIgnore(pszName);
}
Пример #3
0
void CChatChanMember::Ignore(LPCTSTR pszName)
{
	ADDTOCALLSTACK("CChatChanMember::Ignore");
	if (!IsIgnoring(pszName))
		ToggleIgnore(pszName);
	else
		SendChatMsg(CHATMSG_AlreadyIgnoringPlayer, pszName);
}
Пример #4
0
void IgnoreList::Ignore(int index)
{
	if (!IsIgnoring(index))
	{
		mToIgnore[index - mLowerBound] = true;
		mIgnoring++;
		if (mIgnoring == mIgnoreSize)
		{
			mLowerBound += mIgnoreSize;
			Reset();
		}
	}
}