Make +-a give you the appropriate error message if you don't have

the proper privs.
This commit is contained in:
JD Horelick 2010-03-07 21:57:00 -05:00
parent 11e91210d7
commit c809010b89
1 changed files with 1 additions and 2 deletions

View File

@ -943,8 +943,7 @@ chm_owner(struct Client *source_p, struct Channel *chptr,
{
if(!(*errors & SM_ERR_NOOPS))
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
me.name, source_p->name, chptr->chname);
sendto_one(source_p, ":%s 482 %s %s :You're not a channel administrator", me.name, source_p->name, chptr->chname);
*errors |= SM_ERR_NOOPS;
return;
}