Merge AddService(), AddClone() into AddLocalUser()
[srvx.git] / src / global.c
index d92e5bd6f150f58a1d35bed30b1bc72f531f1a73..d1aea5d46c27e6180c1b61a2d95c9dba4b9f60e9 100644 (file)
@@ -704,7 +704,7 @@ init_global(const char *nick)
     if(nick)
     {
         const char *modes = conf_get_data("services/global/modes", RECDB_QSTRING);
-        global = AddService(nick, modes ? modes : NULL, "Global Services", NULL);
+        global = AddLocalUser(nick, nick, NULL, "Global Services", modes);
         global_service = service_register(global);
     }
     saxdb_register("Global", global_saxdb_read, global_saxdb_write);