]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/global.c
fixed registration process (uncommitted code from afternets x3 applied)
[irc/evilnet/x3.git] / src / global.c
index dc7dc4f0f381c73c3a9d3c842478f7cf3cbe7192..37d7b2d368e42651ceb1dcb0a65246b8a99e1d06 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
@@ -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);