added modes parameter to srvx.conf to control user modes
[srvx.git] / src / global.c
index dc7dc4f0f381c73c3a9d3c842478f7cf3cbe7192..75e82457480d43f2195c583a1d403a283e9b25d5 100644 (file)
@@ -674,7 +674,8 @@ init_global(const char *nick)
 
     if(nick)
     {
-        global = AddService(nick, "Global Services", NULL);
+        const char *modes = conf_get_data("services/global/modes", RECDB_QSTRING);
+        global = AddService(nick, modes ? modes : NULL, "Global Services", NULL);
         global_service = service_register(global);
     }
     saxdb_register("Global", global_saxdb_read, global_saxdb_write);