From c809010b896a5e2129cdb4374026d60a438d5788 Mon Sep 17 00:00:00 2001 From: JD Horelick Date: Sun, 7 Mar 2010 21:57:00 -0500 Subject: [PATCH] Make +-a give you the appropriate error message if you don't have the proper privs. --- src/chmode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/chmode.c b/src/chmode.c index 792016a..ade4ddf 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -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; }