diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-04 15:37:10 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-04 15:37:10 +0000 |
commit | 90aeacbf12d63dcd628caed461bd744639603d76 (patch) | |
tree | 5eb5c2aa3fd576ac33d84d2911482a3f200c1bea /modules/m_set.c | |
parent | 8daa0e2a6fe61e95dc2dd145ebbdb2b05c097196 (diff) |
- Initial rewrite of the configuration subsystem
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1632 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_set.c')
-rw-r--r-- | modules/m_set.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/m_set.c b/modules/m_set.c index 2623283..8c2e651 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -138,19 +138,16 @@ list_quote_commands(struct Client *source_p) static void quote_autoconn(struct Client *source_p, const char *arg, int newval) { - struct AccessItem *aconf; - if (arg != NULL) { - struct ConfItem *conf = find_exact_name_conf(SERVER_TYPE, NULL, arg, NULL, NULL); + struct MaskItem *conf = find_exact_name_conf(CONF_SERVER, NULL, arg, NULL, NULL); if (conf != NULL) { - aconf = map_to_conf(conf); if (newval) - SetConfAllowAutoConn(aconf); + SetConfAllowAutoConn(conf); else - ClearConfAllowAutoConn(aconf); + ClearConfAllowAutoConn(conf); sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, "%s has changed AUTOCONN for %s to %i", |