]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_kick.c
Change the DNSBL hit snomask to SNO_REJ (+r) as to not spam SNO_GENERAL
[irc/rqf/shadowircd.git] / modules / core / m_kick.c
index b32bf9b73a97d712aa9e9ed41a2fa7ef4b83198c..012891fea9273901beb84e776e4232e0fe5cdeba 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_kick.c 3317 2007-03-28 23:17:06Z jilles $
  */
 
 #include "stdinc.h"
@@ -68,7 +67,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
        char *comment;
        const char *name;
        char *p = NULL;
-       char *text = rb_strdup("");
+       char text[10];
        const char *user;
        static char buf[BUFSIZE];
        int is_override = 0;
@@ -115,7 +114,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;
                                }
@@ -235,7 +234,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                              use_id(source_p), chptr->chname, use_id(who), comment);
                remove_user_from_channel(msptr);
 
-               rb_sprintf(text, "K%s", who->id);
+               rb_snprintf(text, sizeof(text), "K%s", who->id);
 
                /* we don't need to track NOREJOIN stuff unless it's our client being kicked */
                if(MyClient(who) && chptr->mode.mode & MODE_NOREJOIN)