]> jfr.im git - solanum.git/commitdiff
match: allow the CharAttrs table to be modified at runtime
authorWilliam Pitcock <redacted>
Fri, 16 Sep 2016 18:09:44 +0000 (13:09 -0500)
committerWilliam Pitcock <redacted>
Fri, 16 Sep 2016 18:09:44 +0000 (13:09 -0500)
include/match.h
ircd/match.c

index 151ad4bf669527ad734d6affbddf5dba172f591d..ef7ed8e2cad9a1e6fa35430760d1d02547e6cee3 100644 (file)
@@ -87,7 +87,7 @@ extern const unsigned char irctolower_tab[];
 extern const unsigned char irctoupper_tab[];
 #define irctoupper(c) (irctoupper_tab[(unsigned char)(c)])
 
-extern const unsigned int CharAttrs[];
+extern unsigned int CharAttrs[];
 
 #define PRINT_C   0x001
 #define CNTRL_C   0x002
index 165baeabc083c59d90b0033e7127bf8b76d2591f..64389232997593bcde53fc2fb23aa5818686d207 100644 (file)
@@ -670,7 +670,7 @@ const unsigned char irctoupper_tab[] = {
  * NOTE: RFC 1459 sez: anything but a ^G, comma, or space is allowed
  * for channel names
  */
-const unsigned int CharAttrs[] = {
+unsigned int CharAttrs[] = {
 /* 0  */ CNTRL_C,
 /* 1  */ CNTRL_C | CHAN_C | NONEOS_C,
 /* 2  */ CNTRL_C | CHAN_C | FCHAN_C | NONEOS_C,