]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_set.c
Change over some dlink functions.
[irc/rqf/shadowircd.git] / modules / m_set.c
index 342e1de0572131fb800d5bf4ed08a7f441765d92..a61329de7fafc138d87aeb32d999648fea5d2e8c 100644 (file)
@@ -72,7 +72,6 @@ static void quote_autoconn(struct Client *, char *, int);
 static void quote_autoconnall(struct Client *, int);
 static void quote_floodcount(struct Client *, int);
 static void quote_identtimeout(struct Client *, int);
-static void quote_idletime(struct Client *, int);
 static void quote_max(struct Client *, int);
 static void quote_operstring(struct Client *, const char *);
 static void quote_spamnum(struct Client *, int);
@@ -99,7 +98,6 @@ static struct SetStruct set_cmd_table[] = {
        {"AUTOCONNALL", quote_autoconnall,      0,      1       },
        {"FLOODCOUNT",  quote_floodcount,       0,      1       },
        {"IDENTTIMEOUT", quote_identtimeout,    0,      1       },
-       {"IDLETIME",    quote_idletime,         0,      1       },
        {"MAX",         quote_max,              0,      1       },
        {"MAXCLIENTS",  quote_max,              0,      1       },
        {"OPERSTRING",  quote_operstring,       1,      0       },
@@ -213,33 +211,6 @@ quote_identtimeout(struct Client *source_p, int newval)
                           GlobalSetOptions.ident_timeout);
 }
 
-/* SET IDLETIME */
-static void
-quote_idletime(struct Client *source_p, int newval)
-{
-       if(newval >= 0)
-       {
-               if(newval == 0)
-               {
-                       sendto_realops_snomask(SNO_GENERAL, L_ALL,
-                                            "%s has disabled idletime checking", source_p->name);
-                       GlobalSetOptions.idletime = 0;
-               }
-               else
-               {
-                       sendto_realops_snomask(SNO_GENERAL, L_ALL,
-                                            "%s has changed IDLETIME to %i",
-                                            source_p->name, newval);
-                       GlobalSetOptions.idletime = (newval * 60);
-               }
-       }
-       else
-       {
-               sendto_one_notice(source_p, ":IDLETIME is currently %i",
-                       GlobalSetOptions.idletime / 60);
-       }
-}
-
 /* SET MAX */
 static void
 quote_max(struct Client *source_p, int newval)
@@ -267,14 +238,14 @@ quote_max(struct Client *source_p, int newval)
                                     "%s!%s@%s set new MAXCLIENTS to %d (%lu current)",
                                     source_p->name, source_p->username, source_p->host,
                                     GlobalSetOptions.maxclients, 
-                                    dlink_list_length(&lclient_list));
+                                    rb_dlink_list_length(&lclient_list));
 
                return;
        }
        else
        {
                sendto_one_notice(source_p, ":Current Maxclients = %d (%lu)",
-                          GlobalSetOptions.maxclients, dlink_list_length(&lclient_list));
+                          GlobalSetOptions.maxclients, rb_dlink_list_length(&lclient_list));
        }
 }