projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Ghostwolf <foxxe@wtfs.net>
[ircu2.10.12-pk.git]
/
ircd
/
parse.c
diff --git
a/ircd/parse.c
b/ircd/parse.c
index 59951d154beb0a4539b8c0184679c85f5febc8b2..9e19f8f425279f5e80fe4d825e94b24da41750e9 100644
(file)
--- a/
ircd/parse.c
+++ b/
ircd/parse.c
@@
-266,7
+266,7
@@
struct Message msgtab[] = {
TOK_WHOIS,
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
TOK_WHOIS,
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
- { m_unregistered, m_whois, m_whois, m_whois, m_ignore }
+ { m_unregistered, m_whois, m
s
_whois, m_whois, m_ignore }
},
{
MSG_WHO,
},
{
MSG_WHO,
@@
-393,7
+393,7
@@
struct Message msgtab[] = {
TOK_VERSION,
0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
TOK_VERSION,
0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
- { m_version, m_version, ms_version, m_version, m_ignore }
+ { m_version, m_version, ms_version, m
o
_version, m_ignore }
},
{
MSG_STATS,
},
{
MSG_STATS,
@@
-418,7
+418,7
@@
struct Message msgtab[] = {
TOK_ADMIN,
0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
TOK_ADMIN,
0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
- { m_admin, m_admin, ms_admin, m_admin, m_ignore }
+ { m_admin, m_admin, ms_admin, m
o
_admin, m_ignore }
},
{
MSG_HELP,
},
{
MSG_HELP,
@@
-574,6
+574,13
@@
struct Message msgtab[] = {
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
{ m_unregistered, m_not_oper, m_ignore, mo_privs, m_ignore }
},
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
{ m_unregistered, m_not_oper, m_ignore, mo_privs, m_ignore }
},
+ {
+ MSG_ACCOUNT,
+ TOK_ACCOUNT,
+ 0, MAXPARA, MFLG_SLOW, 0,
+ /* UNREG, CLIENT, SERVER, OPER, SERVICE */
+ { m_ignore, m_ignore, ms_account, m_ignore, 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
/* 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
@@
-586,9
+593,9
@@
struct Message msgtab[] = {
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
{ m_quit, m_ignore, m_ignore, m_ignore, m_ignore }
0, MAXPARA, MFLG_SLOW, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
{ m_quit, m_ignore, m_ignore, m_ignore, m_ignore }
- },
+ },
{ 0 }
{ 0 }
-};
+};
static char *para[MAXPARA + 2]; /* leave room for prefix and null */
static char *para[MAXPARA + 2]; /* leave room for prefix and null */
@@
-716,7
+723,7
@@
static struct Message *do_msg_tree_cmd(struct MessageTree *mtree, char *prefix,
}
return mptr;
}
}
return mptr;
}
- /*
+ /*
* This should never happen
*/
assert(0);
* This should never happen
*/
assert(0);
@@
-745,7
+752,7
@@
void initmsgtree(void)
int ii;
struct Message **msgtab_tok;
struct Message **msgtok;
int ii;
struct Message **msgtab_tok;
struct Message **msgtok;
-
+
for (i = 0; msg->cmd; ++i, ++msg)
continue;
qsort(msgtab, i, sizeof(struct Message),
for (i = 0; msg->cmd; ++i, ++msg)
continue;
qsort(msgtab, i, sizeof(struct Message),
@@
-1034,7
+1041,7
@@
int parse_server(struct Client *cptr, char *buffer, char *bufend)
}
else if (' ' == ch[1] || ' ' == ch[2])
from = FindNServer(numeric_prefix);
}
else if (' ' == ch[1] || ' ' == ch[2])
from = FindNServer(numeric_prefix);
- else
+ else
from = findNUser(numeric_prefix);
do
from = findNUser(numeric_prefix);
do