From acdf2cab0abf0913c39a0aac6d562edcd9648336 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 3 Jul 2013 18:17:10 +0000 Subject: - This shouldn't be sneaked in git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2344 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/m_rehash.c | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/modules/m_rehash.c b/modules/m_rehash.c index 60da725..d039def 100644 --- a/modules/m_rehash.c +++ b/modules/m_rehash.c @@ -37,19 +37,6 @@ #include "motd.h" -struct RehashStruct -{ - const char *name; - void (*handler)(); -}; - -static const struct RehashStruct rehash_cmd_table[] = -{ - { "MOTD", rehash_motd }, - { "DNS", rehash_dns }, - { NULL, NULL } -}; - /* * mo_rehash - REHASH message handler * @@ -58,7 +45,6 @@ static void mo_rehash(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { - const struct RehashStruct *tab = rehash_cmd_table; int found = 0; if (!HasOFlag(source_p, OPER_FLAG_REHASH)) @@ -68,30 +54,7 @@ mo_rehash(struct Client *client_p, struct Client *source_p, return; } - if (EmptyString(parv[1])) - { - sendto_one(source_p, form_str(RPL_REHASHING), - me.name, source_p->name, ConfigFileEntry.configfile); - sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, - "%s is rehashing server config file", - get_oper_name(source_p)); - ilog(LOG_TYPE_IRCD, "REHASH From %s", get_oper_name(source_p)); - rehash(0); - return; - } - - for (; tab->handler; ++tab) - { - if (!irccmp(tab->name, parv[1])) - { - - - - - - - - + if (!EmptyString(parv[1])) { if (irccmp(parv[1], "DNS") == 0) { -- cgit