regonlymsg: fix allow_message() return values
This commit is contained in:
parent
968dee680f
commit
dc5d1d012a
1 changed files with 6 additions and 6 deletions
|
@ -66,22 +66,22 @@ static bool
|
|||
allow_message(struct Client *source_p, struct Client *target_p)
|
||||
{
|
||||
if (!IsSetRegOnlyMsg(target_p))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
if (IsServer(source_p))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
/* XXX: controversial? allow opers to send through +R */
|
||||
if (IsOper(source_p))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
if (accept_message(source_p, target_p))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
if (source_p->user->suser[0])
|
||||
return false;
|
||||
return true;
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue