1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-30 00:36:36 +02:00

- remove references to hunt_server_token() in core

This commit is contained in:
William Pitcock
2013-05-13 21:46:20 +00:00
parent 32776a4ad1
commit befe488d14
2 changed files with 9 additions and 16 deletions
+2 -3
View File
@@ -1053,9 +1053,8 @@ int m_module(aClient *cptr, aClient *sptr, int parc, char *parv[])
#endif
/* Opers can do /module <servername> */
if ((parc > 1) && (hunt_server_token(cptr, sptr, MSG_MODULE, TOK_MODULE, ":%s", 1, parc,
parv) != HUNTED_ISME))
return 0;
if ((parc > 1) && (hunt_server(cptr, sptr, ":%s MODULES :%s", 1, parc, parv) != HUNTED_ISME))
return 0;
if (!Modules)
{
sendto_one(sptr, ":%s NOTICE %s :*** No modules loaded", me.name, sptr->name);
+7 -13
View File
@@ -181,8 +181,7 @@ CMD_FUNC(m_version)
if (!IsPerson(sptr) && !IsServer(cptr))
goto normal;
if (hunt_server_token(cptr, sptr, MSG_VERSION, TOK_VERSION, ":%s", 1, parc,
parv) == HUNTED_ISME)
if (hunt_server(cptr, sptr, ":%s VERSION :%s", 1, parc, parv) == HUNTED_ISME)
{
sendto_one(sptr, rpl_str(RPL_VERSION), me.name,
parv[0], version, debugmode, me.name,
@@ -323,9 +322,7 @@ char **text = unrealinfo;
CMD_FUNC(m_info)
{
if (hunt_server_token(cptr, sptr, MSG_INFO, TOK_INFO, ":%s", 1, parc,
parv) == HUNTED_ISME)
if (hunt_server(cptr, sptr, ":%s INFO :%s", 1, parc, parv) == HUNTED_ISME)
{
m_info_send(sptr);
}
@@ -342,8 +339,7 @@ CMD_FUNC(m_dalinfo)
{
char **text = dalinfotext;
if (hunt_server_token(cptr, sptr, MSG_DALINFO, TOK_DALINFO, ":%s", 1, parc,
parv) == HUNTED_ISME)
if (hunt_server(cptr, sptr, ":%s DALINFO :%s", 1, parc, parv) == HUNTED_ISME)
{
while (*text)
sendto_one(sptr, rpl_str(RPL_INFO),
@@ -370,8 +366,7 @@ CMD_FUNC(m_license)
{
char **text = gnulicense;
if (hunt_server_token(cptr, sptr, MSG_LICENSE, TOK_LICENSE, ":%s", 1, parc,
parv) == HUNTED_ISME)
if (hunt_server(cptr, sptr, ":%s LICENSE :%s", 1, parc, parv) == HUNTED_ISME)
{
while (*text)
sendto_one(sptr, rpl_str(RPL_INFO),
@@ -393,8 +388,7 @@ CMD_FUNC(m_credits)
{
char **text = unrealcredits;
if (hunt_server_token(cptr, sptr, MSG_CREDITS, TOK_CREDITS, ":%s", 1, parc,
parv) == HUNTED_ISME)
if (hunt_server(cptr, sptr, ":%s CREDITS :%s", 1, parc, parv) == HUNTED_ISME)
{
while (*text)
sendto_one(sptr, rpl_str(RPL_INFO),
@@ -639,12 +633,12 @@ CMD_FUNC(m_rehash)
if (parv[1] && (parv[1][0] == '-'))
x = HUNTED_ISME;
else
x = hunt_server_token(cptr, sptr, MSG_REHASH, TOK_REHASH, "%s", 1, parc, parv);
x = hunt_server(cptr, sptr, ":%s REHASH :%s", 1, parc, parv);
} else {
if (!_match("-glob*", parv[1])) /* This is really ugly... hack to make /rehash -global -something work */
x = HUNTED_ISME;
else
x = hunt_server_token(cptr, sptr, MSG_REHASH, TOK_REHASH, "%s %s", 1, parc, parv);
x = hunt_server(cptr, sptr, ":%s REHASH %s :%s", 1, parc, parv);
}
if (x != HUNTED_ISME)
return 0; /* Now forwarded or server didnt exist */