Make +-a give you the appropriate error message if you don't have
the proper privs.
This commit is contained in:
parent
11e91210d7
commit
c809010b89
|
@ -943,8 +943,7 @@ chm_owner(struct Client *source_p, struct Channel *chptr,
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!(*errors & SM_ERR_NOOPS))
|
if(!(*errors & SM_ERR_NOOPS))
|
||||||
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
sendto_one(source_p, ":%s 482 %s %s :You're not a channel administrator", me.name, source_p->name, chptr->chname);
|
||||||
me.name, source_p->name, chptr->chname);
|
|
||||||
*errors |= SM_ERR_NOOPS;
|
*errors |= SM_ERR_NOOPS;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue