X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d76ed9a966ee3d955c8ef00ecc02e643c2005e2e..8e11460f61347bb46f061dcee2472bca8a38534b:/src/global.c diff --git a/src/global.c b/src/global.c index dc7dc4f..32dae6a 100644 --- a/src/global.c +++ b/src/global.c @@ -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);