]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_dline.c
[svn] Cut down quit/part/kick reasons to avoid quit reasons
[irc/rqf/shadowircd.git] / modules / m_dline.c
index 98ac142910e2dd50a50f46fe16ce16802082ff0d..f173d05c6621ad0597b72f29665286db35a51c4f 100644 (file)
@@ -21,7 +21,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_dline.c 3161 2007-01-25 07:23:01Z nenolod $
+ *  $Id: m_dline.c 3225 2007-03-04 23:42:55Z jilles $
  */
 
 #include "stdinc.h"
@@ -59,7 +59,7 @@ struct Message undline_msgtab = {
 };
 
 mapi_clist_av1 dline_clist[] = { &dline_msgtab, &undline_msgtab, NULL };
-DECLARE_MODULE_AV1(dline, NULL, NULL, dline_clist, NULL, NULL, "$Revision: 3161 $");
+DECLARE_MODULE_AV1(dline, NULL, NULL, dline_clist, NULL, NULL, "$Revision: 3225 $");
 
 static int valid_comment(char *comment);
 static int flush_write(struct Client *, FILE *, char *, char *);
@@ -393,8 +393,8 @@ valid_comment(char *comment)
        if(strchr(comment, '"'))
                return 0;
 
-       if(strlen(comment) > REASONLEN)
-               comment[REASONLEN] = '\0';
+       if(strlen(comment) > BANREASONLEN)
+               comment[BANREASONLEN] = '\0';
 
        return 1;
 }