diff --git a/doc/reference.conf b/doc/reference.conf index 101ef3e..ad4cc20 100755 --- a/doc/reference.conf +++ b/doc/reference.conf @@ -695,6 +695,7 @@ shared { * all - allow oper/server to do all of above. * locops - allow locops - only used for servers who cluster * die - allow restarting/dying of servers + * modules - allow loading/unloading/reloading of modules * rehash - allow rehashing * dline - allow setting perm/temp dlines * tdline - allow setting temp dlines diff --git a/include/s_newconf.h b/include/s_newconf.h index 8d6f220..f71df24 100644 --- a/include/s_newconf.h +++ b/include/s_newconf.h @@ -97,6 +97,7 @@ struct remote_conf #define SHARED_PDLINE 0x1000 #define SHARED_UNDLINE 0x2000 #define SHARED_DIE 0x4000 +#define SHARED_MODULE 0x8000 #define SHARED_ALL (SHARED_TKLINE | SHARED_PKLINE | SHARED_UNKLINE |\ SHARED_PXLINE | SHARED_TXLINE | SHARED_UNXLINE |\ diff --git a/modules/m_stats.c b/modules/m_stats.c index 234a238..f621270 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -960,6 +960,7 @@ static struct shared_flags shared_flagtable[] = { SHARED_PDLINE, 'D' }, { SHARED_UNDLINE, 'E' }, { SHARED_DIE, 'I' }, + { SHARED_MODULE, 'M' }, { 0, '\0'} }; diff --git a/src/newconf.c b/src/newconf.c index 98b0fb9..7e186f2 100644 --- a/src/newconf.c +++ b/src/newconf.c @@ -378,6 +378,7 @@ static struct mode_table shared_table[] = { "locops", SHARED_LOCOPS }, { "rehash", SHARED_REHASH }, { "die", SHARED_DIE }, + { "modules", SHARED_MODULE }, { "all", SHARED_ALL }, { "none", 0 }, {NULL, 0}