Commits

jdhore committed 02234d2

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

  • Participants
  • Parent commits 7f94202

Comments (0)

Files changed (4)

doc/reference.conf

 	 *    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

include/s_newconf.h

 #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 |\

modules/m_stats.c

 	{ SHARED_PDLINE,	'D' },
 	{ SHARED_UNDLINE,	'E' },
 	{ SHARED_DIE,       'I' },
+	{ SHARED_MODULE,	'M' },
 	{ 0,			'\0'}
 };
 
 	{ "locops",	SHARED_LOCOPS	},
 	{ "rehash",	SHARED_REHASH	},
 	{ "die",	SHARED_DIE		},
+	{ "modules", SHARED_MODULE  },
 	{ "all",	SHARED_ALL	},
 	{ "none",	0		},
 	{NULL, 0}