Fixed regression causing public triggers to no longer display (bug 5863, r=drifter).

This commit is contained in:
Nicholas Hastings 2013-08-24 21:59:52 -04:00
parent 1824826474
commit 0c00f7393c

View File

@ -311,8 +311,7 @@ void ChatTriggers::OnSayCommand_Pre()
RETURN_META(MRES_SUPERCEDE);
}
if (m_bWillProcessInPost || \
(is_silent && g_bSupressSilentFails && pPlayer->GetAdminId() != INVALID_ADMIN_ID))
if (is_silent && (m_bIsChatTrigger || (g_bSupressSilentFails && pPlayer->GetAdminId() != INVALID_ADMIN_ID)))
{
RETURN_META(MRES_SUPERCEDE);
}