]> 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 8f62279df460b838d9315a5a58105c15148ac6e8..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
@@ -44,7 +47,7 @@
                                           see RFC 2812, section 1.2.1 */
 #define CLIENT_NAME_LEN 32             /* Max. length of "real names" */
 #define CLIENT_HOST_LEN 64             /* Max. host name length */
-#define CLIENT_MODE_LEN 16             /* Max. lenth of all client modes */
+#define CLIENT_MODE_LEN 16             /* Max. length of all client modes */
 #define CLIENT_INFO_LEN 64             /* Max. length of server info texts */
 #define CLIENT_AWAY_LEN 128            /* Max. length of away messages */
 #define CLIENT_FLAGS_LEN 16            /* Max. length of client flags */
@@ -82,8 +85,8 @@
 #define RECONNECT_DELAY 3              /* Time to delay re-connect attempts
                                           in seconds. */
 
-#define USERMODES "aciorswx"           /* Supported user modes. */
-#define CHANMODES "biIklmnoOPstvz"     /* Supported channel modes. */
+#define USERMODES "aciorRswx"          /* Supported user modes. */
+#define CHANMODES "biIklmnoOPRstvz"    /* Supported channel modes. */
 
 #define CONNECTED true                 /* Internal status codes. */
 #define DISCONNECTED false