X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fparse.c;h=b79ebb8ace48f6f52a9e50dce8812c4ddb2c82c2;hb=refs%2Fheads%2Fupstream;hp=d90c5192c0b66494827bf6788325404d037ba67a;hpb=e630ab24899b4f59fba9d96b301faf82ded9370e;p=ircu2.10.12-pk.git diff --git a/ircd/parse.c b/ircd/parse.c index d90c519..b79ebb8 100644 --- a/ircd/parse.c +++ b/ircd/parse.c @@ -342,7 +342,7 @@ struct Message msgtab[] = { TOK_NAMES, 0, MAXPARA, MFLG_SLOW, 0, NULL, /* UNREG, CLIENT, SERVER, OPER, SERVICE */ - { m_unregistered, m_names, ms_names, m_names, m_ignore } + { m_unregistered, m_names, m_names, m_names, m_ignore } }, { MSG_USERHOST, @@ -617,6 +617,20 @@ struct Message msgtab[] = { /* UNREG, CLIENT, SERVER, OPER, SERVICE */ { m_ignore, m_not_oper, ms_asll, mo_asll, m_ignore } }, + { + MSG_XQUERY, + TOK_XQUERY, + 0, MAXPARA, MFLG_SLOW, 0, NULL, + /* UNREG, CLIENT, SERVER, OPER, SERVICE */ + { m_ignore, m_ignore, ms_xquery, mo_xquery, m_ignore } + }, + { + MSG_XREPLY, + TOK_XREPLY, + 0, MAXPARA, MFLG_SLOW, 0, NULL, + /* UNREG, CLIENT, SERVER, OPER, SERVICE */ + { m_ignore, m_ignore, ms_xreply, m_ignore, m_ignore } + }, #if WE_HAVE_A_REAL_CAPABILITY_NOW { MSG_CAP, @@ -810,7 +824,6 @@ parse_client(struct Client *cptr, char *buffer, char *bufend) char* s; int i; int paramcount; - int noprefix = 0; struct Message* mptr; MessageHandler handler = 0; @@ -828,8 +841,6 @@ parse_client(struct Client *cptr, char *buffer, char *bufend) while (*ch == ' ') ch++; /* Advance to command */ } - else - noprefix = 1; if (*ch == '\0') { ServerStats->is_empt++;