summaryrefslogtreecommitdiff
path: root/modules/m_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_set.c')
-rw-r--r--modules/m_set.c9
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",