From 64dd2404ca07e424b80c331c3eccc0e3d5ea6e02 Mon Sep 17 00:00:00 2001 From: JD Horelick Date: Thu, 25 Mar 2010 12:31:12 -0400 Subject: [PATCH] Rewrite message when you don't have the privs to kick a user (be it that the user is +a and you're +o/+h or you're not an op at all). --- TODO-SHADOW | 1 - modules/core/m_kick.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO-SHADOW b/TODO-SHADOW index cc25fcc..583a8c5 100644 --- a/TODO-SHADOW +++ b/TODO-SHADOW @@ -1,6 +1,5 @@ Todo list for ShadowIRCd 6.1 ----------------------------- -* pretty error messages for +ah stuff * update ojoin/omode/etc to use +ah * notice/message !#channel and %#channel * clean disable/removal of modes on rehash, if possible without being ugly diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index b32bf9b..572e911 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -115,7 +115,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p is_override = 1; else { - sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED), + sendto_one(source_p, ":%s 482 %s %s :You do not have the proper privledges to kick this user", me.name, source_p->name, name); return 0; }