diff options
-rw-r--r-- | include/parse.h | 1 | ||||
-rw-r--r-- | modules/core/m_server.c | 2 | ||||
-rw-r--r-- | modules/m_set.c | 2 | ||||
-rw-r--r-- | src/parse.c | 34 |
4 files changed, 2 insertions, 37 deletions
diff --git a/include/parse.h b/include/parse.h index 1a58e66..c7b4cee 100644 --- a/include/parse.h +++ b/include/parse.h @@ -156,7 +156,6 @@ extern struct Message *find_command(const char *); extern void report_messages(struct Client *); /* generic handlers */ -extern void rfc1459_command_send_error(struct Client *, struct Client *,int, char *[]); extern void m_ignore(struct Client *, struct Client *, int, char *[]); extern void m_not_oper(struct Client *, struct Client *, int, char *[]); extern void m_registered(struct Client *, struct Client *, int, char *[]); diff --git a/modules/core/m_server.c b/modules/core/m_server.c index 8ede844..37fb02f 100644 --- a/modules/core/m_server.c +++ b/modules/core/m_server.c @@ -609,7 +609,7 @@ static struct Message server_msgtab = { static struct Message sid_msgtab = { "SID", 0, 0, 5, MAXPARA, MFLG_SLOW, 0, - {rfc1459_command_send_error, m_ignore, ms_sid, m_ignore, m_ignore, m_ignore} + {m_ignore, m_ignore, ms_sid, m_ignore, m_ignore, m_ignore} }; static void diff --git a/modules/m_set.c b/modules/m_set.c index 28d2bf0..308e358 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -555,7 +555,7 @@ mo_set(struct Client *client_p, struct Client *source_p, static struct Message set_msgtab = { "SET", 0, 0, 0, MAXPARA, MFLG_SLOW, 0, - {m_unregistered, m_not_oper, rfc1459_command_send_error, m_ignore, mo_set, m_ignore} + {m_unregistered, m_not_oper, m_ignore, m_ignore, mo_set, m_ignore} }; static void diff --git a/src/parse.c b/src/parse.c index 547fe0e..7ac3eff 100644 --- a/src/parse.c +++ b/src/parse.c @@ -759,37 +759,3 @@ m_ignore(struct Client *client_p, struct Client *source_p, { return; } - -void -rfc1459_command_send_error(struct Client *client_p, struct Client *source_p, - int parc, char *parv[]) -{ - const char *in_para; - - in_para = (parc > 1 && *parv[1] != '\0') ? parv[1] : "<>"; - - ilog(LOG_TYPE_IRCD, "Received ERROR message from %s: %s", - source_p->name, in_para); - - if (client_p == source_p) - { - sendto_realops_flags(UMODE_ALL, L_ADMIN, SEND_NOTICE, - "ERROR :from %s -- %s", - get_client_name(client_p, HIDE_IP), in_para); - sendto_realops_flags(UMODE_ALL, L_OPER, SEND_NOTICE, - "ERROR :from %s -- %s", - get_client_name(client_p, MASK_IP), in_para); - } - else - { - sendto_realops_flags(UMODE_ALL, L_ADMIN, SEND_NOTICE, - "ERROR :from %s via %s -- %s", - source_p->name, get_client_name(client_p, HIDE_IP), in_para); - sendto_realops_flags(UMODE_ALL, L_OPER, SEND_NOTICE, - "ERROR :from %s via %s -- %s", - source_p->name, get_client_name(client_p, MASK_IP), in_para); - } - - if (MyClient(source_p)) - exit_client(source_p, source_p, "ERROR"); -} |