diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-07-03 18:17:10 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-07-03 18:17:10 +0000 |
commit | acdf2cab0abf0913c39a0aac6d562edcd9648336 (patch) | |
tree | abf82d70bf733919a4361729b0d23f7479db3d4c | |
parent | a1ce9ba4b3c64a9f7daf82d88b40381afebd5222 (diff) |
- 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
-rw-r--r-- | modules/m_rehash.c | 39 |
1 files changed, 1 insertions, 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) { |