]> 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 572e9117d641b39202f2c8fbc8e8c03475ab066b..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;
@@ -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)