Add shared::modules option, remote module stuff coming later/soon.

This commit is contained in:
JD Horelick 2010-03-24 15:50:15 -04:00
parent d25c6eb1b2
commit 069f104a2e
4 changed files with 4 additions and 0 deletions

View File

@ -695,6 +695,7 @@ shared {
* all - allow oper/server to do all of above. * all - allow oper/server to do all of above.
* locops - allow locops - only used for servers who cluster * locops - allow locops - only used for servers who cluster
* die - allow restarting/dying of servers * die - allow restarting/dying of servers
* modules - allow loading/unloading/reloading of modules
* rehash - allow rehashing * rehash - allow rehashing
* dline - allow setting perm/temp dlines * dline - allow setting perm/temp dlines
* tdline - allow setting temp dlines * tdline - allow setting temp dlines

View File

@ -97,6 +97,7 @@ struct remote_conf
#define SHARED_PDLINE 0x1000 #define SHARED_PDLINE 0x1000
#define SHARED_UNDLINE 0x2000 #define SHARED_UNDLINE 0x2000
#define SHARED_DIE 0x4000 #define SHARED_DIE 0x4000
#define SHARED_MODULE 0x8000
#define SHARED_ALL (SHARED_TKLINE | SHARED_PKLINE | SHARED_UNKLINE |\ #define SHARED_ALL (SHARED_TKLINE | SHARED_PKLINE | SHARED_UNKLINE |\
SHARED_PXLINE | SHARED_TXLINE | SHARED_UNXLINE |\ SHARED_PXLINE | SHARED_TXLINE | SHARED_UNXLINE |\

View File

@ -960,6 +960,7 @@ static struct shared_flags shared_flagtable[] =
{ SHARED_PDLINE, 'D' }, { SHARED_PDLINE, 'D' },
{ SHARED_UNDLINE, 'E' }, { SHARED_UNDLINE, 'E' },
{ SHARED_DIE, 'I' }, { SHARED_DIE, 'I' },
{ SHARED_MODULE, 'M' },
{ 0, '\0'} { 0, '\0'}
}; };

View File

@ -378,6 +378,7 @@ static struct mode_table shared_table[] =
{ "locops", SHARED_LOCOPS }, { "locops", SHARED_LOCOPS },
{ "rehash", SHARED_REHASH }, { "rehash", SHARED_REHASH },
{ "die", SHARED_DIE }, { "die", SHARED_DIE },
{ "modules", SHARED_MODULE },
{ "all", SHARED_ALL }, { "all", SHARED_ALL },
{ "none", 0 }, { "none", 0 },
{NULL, 0} {NULL, 0}