From f656a02b76ca595f05f158eb6fdb2268cb05b89c Mon Sep 17 00:00:00 2001 From: codemastr Date: Sat, 24 Feb 2001 16:22:26 +0000 Subject: [PATCH] various cleanups --- Changes | 3 +++ src/s_serv.c | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Changes b/Changes index df55a067e..30ac01c09 100644 --- a/Changes +++ b/Changes @@ -232,6 +232,9 @@ - Replaced a few strlen()s with sizeof(), should make the IRCd start a bit faster - Fixed a svsmotd bug (from 3.1) prevented adding lines to the svsmotd - Recoded some dynamic motd stuff. Now uses 1 function. +- Removed an unused var from the old T:line code +- Removed a redundant check in SVSKILL +- Removed some old code from LUSERS (it was moved due to IRCStats but some leftovers remained) - Added deny channel { channel "channelmask"; reason "why"; }; and allow channel { channel "channelmask"; };. Replaces chrestrict - Made those above get rehashed diff --git a/src/s_serv.c b/src/s_serv.c index 18277bbcb..b4d4afd69 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -57,7 +57,6 @@ aMotd *rules; aMotd *motd; aMotd *svsmotd; aMotd *botmotd; -aTrecord *tdata; struct tm *motd_tm; aMotd *read_file(char *filename, aMotd **list); aMotd *read_motd(char *filename); @@ -2953,7 +2952,6 @@ int m_lusers(cptr, sptr, parc, parv) int parc; char *parv[]; { - char mydom_mask[HOSTLEN + 1]; /* Doesn't work anyways --Stskeeps @@ -2963,8 +2961,6 @@ int m_lusers(cptr, sptr, parc, parv) return 0; */ - mydom_mask[0] = '*'; - strncpy(&mydom_mask[1], DOMAINNAME, HOSTLEN - 1); /* Just to correct results ---Stskeeps */ if (IRCstats.clients > IRCstats.global_max) IRCstats.global_max = IRCstats.clients; @@ -3648,7 +3644,7 @@ int m_svskill(cptr, sptr, parc, parv) return 0; */ - if (parc < 1 || (!(acptr = find_client(parv[1], NULL)))) + if (!(acptr = find_client(parv[1], NULL))) return 0; sendto_serv_butone_token(cptr, parv[0], @@ -4178,7 +4174,7 @@ int m_trace(cptr, sptr, parc, parv) return 0; } for (cltmp = conf_class; doall && cltmp; cltmp = (ConfigItem_class *) cltmp->next) - // if (cltmp->clients > 0) + /* if (cltmp->clients > 0) */ sendto_one(sptr, rpl_str(RPL_TRACECLASS), me.name, parv[0], cltmp->name ? cltmp->name : "[noname]", cltmp->clients); return 0;