Add some code back in that I accidentally deleted.

This commit is contained in:
B.Greenham 2010-02-25 20:41:19 -05:00
parent 700e690027
commit 0099f31acf
1 changed files with 7 additions and 1 deletions

View File

@ -759,8 +759,14 @@ msg_client(int p_or_n, const char *command,
if(MyClient(target_p))
{
if (IsSetNoCTCP(target_p) && p_or_n != NOTICE && *text == '\001' && strncasecmp(text + 1, "ACTION", 6))
{
sendto_one_numeric(source_p, ERR_NOCTCP,
form_str(ERR_NOCTCP),
target_p->name);
}
/* XXX Controversial? allow opers always to send through a +g */
if(!IsServer(source_p) && (IsSetCallerId(target_p) ||
else if(!IsServer(source_p) && (IsSetCallerId(target_p) ||
(IsSetSCallerId(target_p) && !has_common_channel(source_p, target_p)) ||
(IsSetRegOnlyMsg(target_p) && !source_p->user->suser[0])))
{