From bbe4d98dda1f47ce1097fd0aa020d5289199056c Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 4 Jun 2013 18:33:25 +0000 Subject: - Moved disable_remote_command configuration directive from general{} block to serverhide{] block git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2197 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/m_admin.c | 2 +- modules/m_info.c | 4 ++-- modules/m_links.c | 2 +- modules/m_lusers.c | 2 +- modules/m_motd.c | 2 +- modules/m_ping.c | 2 +- modules/m_stats.c | 4 ++-- modules/m_time.c | 2 +- modules/m_users.c | 2 +- modules/m_version.c | 2 +- modules/m_whois.c | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) (limited to 'modules') diff --git a/modules/m_admin.c b/modules/m_admin.c index 9db6fa9..0abecff 100644 --- a/modules/m_admin.c +++ b/modules/m_admin.c @@ -95,7 +95,7 @@ m_admin(struct Client *client_p, struct Client *source_p, last_used = CurrentTime; - if (!ConfigFileEntry.disable_remote) + if (!ConfigServerHide.disable_remote_commands) if (hunt_server(client_p, source_p, ":%s ADMIN :%s", 1, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_info.c b/modules/m_info.c index 5cf4a5b..111920c 100644 --- a/modules/m_info.c +++ b/modules/m_info.c @@ -291,7 +291,7 @@ static const struct InfoStruct info_table[] = { "disable_remote_commands", OUTPUT_BOOLEAN_YN, - &ConfigFileEntry.disable_remote, + &ConfigServerHide.disable_remote_commands, "Prevent users issuing commands on remote servers" }, { @@ -695,7 +695,7 @@ m_info(struct Client *client_p, struct Client *source_p, last_used = CurrentTime; - if (!ConfigFileEntry.disable_remote) + if (!ConfigServerHide.disable_remote_commands) if (hunt_server(client_p,source_p, ":%s INFO :%s", 1, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_links.c b/modules/m_links.c index e0fe286..dade049 100644 --- a/modules/m_links.c +++ b/modules/m_links.c @@ -111,7 +111,7 @@ mo_links(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { if (parc > 2) - if (!ConfigFileEntry.disable_remote || HasUMode(source_p, UMODE_OPER)) + if (!ConfigServerHide.disable_remote_commands || HasUMode(source_p, UMODE_OPER)) if (hunt_server(client_p, source_p, ":%s LINKS %s :%s", 1, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_lusers.c b/modules/m_lusers.c index c7c41c5..40a7bdf 100644 --- a/modules/m_lusers.c +++ b/modules/m_lusers.c @@ -59,7 +59,7 @@ m_lusers(struct Client *client_p, struct Client *source_p, last_used = CurrentTime; - if (parc > 2 && !ConfigFileEntry.disable_remote) + if (parc > 2 && !ConfigServerHide.disable_remote_commands) if (hunt_server(client_p, source_p, ":%s LUSERS %s :%s", 2, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_motd.c b/modules/m_motd.c index 4f30eb7..9dcc231 100644 --- a/modules/m_motd.c +++ b/modules/m_motd.c @@ -67,7 +67,7 @@ m_motd(struct Client *client_p, struct Client *source_p, last_used = CurrentTime; /* This is safe enough to use during non hidden server mode */ - if (!ConfigFileEntry.disable_remote && !ConfigServerHide.hide_servers) + if (!ConfigServerHide.disable_remote_commands && !ConfigServerHide.hide_servers) if (hunt_server(client_p, source_p, ":%s MOTD :%s", 1, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_ping.c b/modules/m_ping.c index 520b00a..cec3596 100644 --- a/modules/m_ping.c +++ b/modules/m_ping.c @@ -58,7 +58,7 @@ m_ping(struct Client *client_p, struct Client *source_p, origin = parv[1]; destination = parv[2]; /* Will get NULL or pointer (parc >= 2!!) */ - if (ConfigFileEntry.disable_remote && !HasUMode(source_p, UMODE_OPER)) + if (ConfigServerHide.disable_remote_commands && !HasUMode(source_p, UMODE_OPER)) { sendto_one(source_p, ":%s PONG %s :%s", me.name, (destination) ? destination : me.name, origin); diff --git a/modules/m_stats.c b/modules/m_stats.c index 9d8474c..28e4342 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -1241,7 +1241,7 @@ stats_uptime(struct Client *source_p, int parc, char *parv[]) sendto_one(source_p, form_str(RPL_STATSUPTIME), from, to, now / 86400, (now / 3600) % 24, (now / 60) % 60, now % 60); - if (!ConfigFileEntry.disable_remote || HasUMode(source_p, UMODE_OPER)) + if (!ConfigServerHide.disable_remote_commands || HasUMode(source_p, UMODE_OPER)) sendto_one(source_p, form_str(RPL_STATSCONN), from, to, Count.max_loc_con, Count.max_loc_cli, Count.totalrestartcount); } @@ -1632,7 +1632,7 @@ m_stats(struct Client *client_p, struct Client *source_p, static time_t last_used = 0; /* Is the stats meant for us? */ - if (!ConfigFileEntry.disable_remote) + if (!ConfigServerHide.disable_remote_commands) if (hunt_server(client_p, source_p, ":%s STATS %s :%s", 2, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_time.c b/modules/m_time.c index 14705c6..3e9a0df 100644 --- a/modules/m_time.c +++ b/modules/m_time.c @@ -49,7 +49,7 @@ m_time(struct Client *client_p, struct Client *source_p, flood_endgrace(source_p); /* This is safe enough to use during non hidden server mode */ - if (!ConfigFileEntry.disable_remote) + if (!ConfigServerHide.disable_remote_commands) if (hunt_server(client_p, source_p, ":%s TIME :%s", 1, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_users.c b/modules/m_users.c index fb0a92a..06c8200 100644 --- a/modules/m_users.c +++ b/modules/m_users.c @@ -53,7 +53,7 @@ m_users(struct Client *client_p, struct Client *source_p, last_used = CurrentTime; - if (!ConfigFileEntry.disable_remote) + if (!ConfigServerHide.disable_remote_commands) if (hunt_server(client_p, source_p, ":%s USERS :%s", 1, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_version.c b/modules/m_version.c index d9e689a..a2d62d6 100644 --- a/modules/m_version.c +++ b/modules/m_version.c @@ -69,7 +69,7 @@ m_version(struct Client *client_p, struct Client *source_p, last_used = CurrentTime; - if (!ConfigFileEntry.disable_remote) + if (!ConfigServerHide.disable_remote_commands) if (hunt_server(client_p, source_p, ":%s VERSION :%s", 1, parc, parv) != HUNTED_ISME) return; diff --git a/modules/m_whois.c b/modules/m_whois.c index a1e736c..b71806c 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -221,7 +221,7 @@ m_whois(struct Client *client_p, struct Client *source_p, * server, or our server.. I dont see why they would need to ask * anything else for info about the client.. --fl_ */ - if (ConfigFileEntry.disable_remote) + if (ConfigServerHide.disable_remote_commands) parv[1] = parv[2]; if (hunt_server(client_p, source_p, ":%s WHOIS %s :%s", 1, -- cgit