]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/defines.h
channel modes: only handle MAX_CMODES_ARG modes with arguments
[ngircd-alex.git] / src / ngircd / defines.h
index 4bcb6aff8ce295ce9c39076cca0b9e0929e0aa2e..b894dbc7beffef50138c2a96ea9afb80fdd2d4cd 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2010 Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2012 Alexander Barton (alex@barton.de)
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -32,6 +32,9 @@
 #define MAX_WHOWAS 64                  /* Max. number of WHOWAS items */
 #define DEFAULT_WHOWAS 5               /* default count for WHOWAS command */
 
+#define MAX_CMODES_ARG 5               /* Max. number of channel modes with
+                                        * arguments per MODE command */
+
 #define CONNECTION_POOL 100            /* Size of default connection pool */
 
 #define CLIENT_ID_LEN 64               /* Max. length of an IRC ID; see RFC