match: allow the CharAttrs table to be modified at runtime

This commit is contained in:
William Pitcock 2016-09-16 13:09:44 -05:00
parent e47c4be18c
commit f3b84221d0
2 changed files with 2 additions and 2 deletions

View 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

View 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,