*
* $Id$
*/
+#include "config.h"
+
#include "parse.h"
#include "client.h"
#include "channel.h"
#include "ircd.h"
#include "ircd_alloc.h"
#include "ircd_chattr.h"
+#include "ircd_features.h"
+#include "ircd_policy.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "msg.h"
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
{ m_unregistered, m_not_oper, ms_wallops, mo_wallops, m_ignore }
},
+ {
+ MSG_WALLUSERS,
+ TOK_WALLUSERS,
+ 0, MAXPARA, MFLG_SLOW, 0,
+ /* UNREG, CLIENT, SERVER, OPER, SERVICE */
+ { m_unregistered, m_not_oper, ms_wallusers, mo_wallusers, m_ignore }
+ },
{
MSG_DESYNCH,
TOK_DESYNCH,
TOK_PING,
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
- { m_unregistered, m_ping, ms_ping, m_ping, m_ignore }
+ { m_unregistered, m_ping, ms_ping, mo_ping, m_ignore }
},
{
MSG_PONG,
TOK_ERROR,
0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
- { m_ignore, m_ignore, ms_error, m_ignore, m_ignore }
+ { mr_error, m_ignore, ms_error, m_ignore, m_ignore }
},
{
MSG_KILL,
TOK_TRACE,
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
+#ifdef HEAD_IN_SAND_TRACE
+ { m_unregistered, m_not_oper, ms_trace, mo_trace, m_ignore }
+#else
{ m_unregistered, m_trace, ms_trace, mo_trace, m_ignore }
+#endif
},
{
MSG_PASS,
TOK_OPER,
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
-#ifndef NOOPER
{ m_unregistered, m_oper, ms_oper, mo_oper, m_ignore }
-#else
- { m_unregistered, m_oper, m_ignore, m_ignore, m_ignore }
-#endif
},
{
MSG_CONNECT,
TOK_MAP,
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
+#ifdef HEAD_IN_SAND_MAP
+ { m_unregistered, m_map_redirect, m_ignore, m_map, m_ignore }
+#else
{ m_unregistered, m_map, m_ignore, m_map, m_ignore }
+#endif
},
{
MSG_VERSION,
TOK_LINKS,
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
+#ifdef HEAD_IN_SAND_LINKS
+ { m_unregistered, m_links_redirect, ms_links, m_links, m_ignore }
+#else
{ m_unregistered, m_links, ms_links, m_links, m_ignore }
+#endif
},
{
MSG_ADMIN,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
{ m_unregistered, m_not_oper, m_ignore, mo_get, m_ignore }
},
+ {
+ MSG_PRIVS,
+ TOK_PRIVS,
+ 0, MAXPARA, MFLG_SLOW, 0,
+ /* UNREG, CLIENT, SERVER, OPER, SERVICE */
+ { m_unregistered, m_not_oper, m_ignore, mo_privs, m_ignore }
+ },
/* This command is an alias for QUIT during the unregistered part of
* of the server. This is because someone jumping via a broken web
* proxy will send a 'POST' as their first command - which we will
};
-#ifdef GODMODE
-extern int sdbflag;
-#endif /* GODMODE */
-
static char *para[MAXPARA + 2]; /* leave room for prefix and null */
/*
handler = mptr->handlers[cli_handler(cptr)];
assert(0 != handler);
-#ifndef IDLE_FROM_MSG
- if (IsUser(cptr) && handler != m_ping && handler != m_ignore)
+ if (!feature_bool(FEAT_IDLE_FROM_MSG) && IsUser(cptr) &&
+ handler != m_ping && handler != m_ignore)
cli_user(from)->last = CurrentTime;
-#endif
return (*handler) (cptr, from, i, para);
}