* note: it is guaranteed that parv[0]..parv[parc-1] are all
* non-NULL pointers.
*/
+#include "config.h"
+
#if 0
/*
* No need to include handlers.h here the signatures must match
#include "client.h"
#include "hash.h"
#include "ircd.h"
+#include "ircd_features.h"
+#include "ircd_policy.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "msg.h"
send_reply(sptr, ERR_NOSUCHSERVER, parv[1]);
return 0;
}
- parv[1] = acptr->name;
+ parv[1] = cli_name(acptr);
}
- if (hunt_server_cmd(sptr, CMD_VERSION, cptr, 0, ":%C", 1, parc, parv) ==
- HUNTED_ISME)
+ if (hunt_server_cmd(sptr, CMD_VERSION, cptr, HEAD_IN_SAND_REMOTE, ":%C", 1,
+ parc, parv) == HUNTED_ISME)
{
char featurebuf[512];
sprintf_irc(featurebuf,FEATURES,FEATURESVALUES);
- send_reply(sptr, RPL_VERSION, version, debugmode, me.name, serveropts);
+ send_reply(sptr, RPL_VERSION, version, debugmode, cli_name(&me),
+ debug_serveropts());
send_reply(sptr, RPL_ISUPPORT, featurebuf);
}
send_reply(sptr, ERR_NOSUCHSERVER, parv[1]);
return 0;
}
- parv[1] = acptr->name;
+ parv[1] = cli_name(acptr);
}
if (hunt_server_cmd(sptr, CMD_VERSION, cptr, 0, ":%C", 1, parc, parv) ==
HUNTED_ISME)
{
- char featurebuf[512];
-
- sprintf_irc(featurebuf,FEATURES,FEATURESVALUES);
-
- send_reply(sptr, RPL_VERSION, version, debugmode, me.name, serveropts);
- send_reply(sptr, RPL_ISUPPORT, featurebuf);
+ send_reply(sptr, RPL_VERSION, version, debugmode, cli_name(&me),
+ debug_serveropts());
}
return 0;
{
if (!(acptr = find_match_server(parv[1])))
{
- sendto_one(sptr, err_str(ERR_NOSUCHSERVER), me.name, parv[0], parv[1]); /* XXX DEAF */
+ sendto_one(sptr, err_str(ERR_NOSUCHSERVER), me.name, parv[0], parv[1]); /* XXX DEAD */
return 0;
}
parv[1] = acptr->name;
}
- if (hunt_server(0, cptr, sptr, "%s%s " TOK_VERSION " :%s", 1, parc, parv) == /* XXX DEAF */
+ if (hunt_server(0, cptr, sptr, "%s%s " TOK_VERSION " :%s", 1, parc, parv) == /* XXX DEAD */
HUNTED_ISME)
- sendto_one(sptr, rpl_str(RPL_VERSION), /* XXX DEAF */
+ sendto_one(sptr, rpl_str(RPL_VERSION), /* XXX DEAD */
me.name, parv[0], version, debugmode, me.name, serveropts);
return 0;