diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-30 18:19:28 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-30 18:19:28 +0000 |
commit | fadcbdc5b28d048ab519c6c938ec10e2c9c5ac66 (patch) | |
tree | 459e2c53804c5d056285d60bb0e13065d5d910b4 /modules | |
parent | 8cc23eb00deba3420409e62b86b3faa88be4a2ad (diff) |
- m_etrace.c: removed unused header includes
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2969 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_etrace.c | 79 |
1 files changed, 37 insertions, 42 deletions
diff --git a/modules/m_etrace.c b/modules/m_etrace.c index 948db2c..f2139ec 100644 --- a/modules/m_etrace.c +++ b/modules/m_etrace.c @@ -31,9 +31,6 @@ #include "irc_string.h" #include "ircd.h" #include "numeric.h" -#include "fdlist.h" -#include "s_bsd.h" -#include "s_serv.h" #include "send.h" #include "parse.h" #include "modules.h" @@ -41,7 +38,43 @@ #include "conf_class.h" -static void report_this_status(struct Client *, struct Client *); +/* report_this_status() + * + * inputs - pointer to client to report to + * - pointer to client to report about + * - flag full etrace or not + * output - NONE + * side effects - NONE + */ +static void +report_this_status(struct Client *source_p, struct Client *target_p) +{ + if (target_p->status == STAT_CLIENT) + { + if (ConfigFileEntry.hide_spoof_ips) + sendto_one(source_p, form_str(RPL_ETRACE), + me.name, + source_p->name, + HasUMode(target_p, UMODE_OPER) ? "Oper" : "User", + get_client_class(&target_p->localClient->confs), + target_p->name, + target_p->username, + target_p->host, + IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost, + target_p->info); + else + sendto_one(source_p, form_str(RPL_ETRACE), + me.name, + source_p->name, + HasUMode(target_p, UMODE_OPER) ? "Oper" : "User", + get_client_class(&target_p->localClient->confs), + target_p->name, + target_p->username, + target_p->host, + target_p->sockhost, + target_p->info); + } +} /* * do_etrace() @@ -116,44 +149,6 @@ mo_etrace(struct Client *client_p, struct Client *source_p, return 0; } -/* report_this_status() - * - * inputs - pointer to client to report to - * - pointer to client to report about - * - flag full etrace or not - * output - NONE - * side effects - NONE - */ -static void -report_this_status(struct Client *source_p, struct Client *target_p) -{ - if (target_p->status == STAT_CLIENT) - { - if (ConfigFileEntry.hide_spoof_ips) - sendto_one(source_p, form_str(RPL_ETRACE), - me.name, - source_p->name, - HasUMode(target_p, UMODE_OPER) ? "Oper" : "User", - get_client_class(&target_p->localClient->confs), - target_p->name, - target_p->username, - target_p->host, - IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost, - target_p->info); - else - sendto_one(source_p, form_str(RPL_ETRACE), - me.name, - source_p->name, - HasUMode(target_p, UMODE_OPER) ? "Oper" : "User", - get_client_class(&target_p->localClient->confs), - target_p->name, - target_p->username, - target_p->host, - target_p->sockhost, - target_p->info); - } -} - static struct Message etrace_msgtab = { "ETRACE", 0, 0, 0, MAXPARA, MFLG_SLOW, 0, |