]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/global.c
found out from Kyle what b flag is.
[irc/evilnet/x3.git] / src / global.c
index dc7dc4f0f381c73c3a9d3c842478f7cf3cbe7192..32dae6aaf7546845ce4345ff5c6c20905342dcda 100644 (file)
@@ -1,7 +1,7 @@
 /* global.c - Global notice service
  * Copyright 2000-2004 srvx Development Team
  *
- * This file is part of srvx.
+ * This file is part of x3.
  *
  * srvx is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -62,7 +62,7 @@ static const struct message_entry msgtab[] = {
     { NULL, NULL }
 };
 
-#define GLOBAL_SYNTAX()   svccmd_send_help(user, global, cmd)
+#define GLOBAL_SYNTAX()   svccmd_send_help_brief(user, global, cmd)
 #define GLOBAL_FUNC(NAME) MODCMD_FUNC(NAME)
 
 struct userNode *global;
@@ -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);