1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 11:23:12 +02:00

- core: remove references to sendto_serv_butone_token() and friends

This commit is contained in:
William Pitcock
2013-05-14 01:26:41 +00:00
parent fa4245546d
commit 67669c0299
4 changed files with 9 additions and 16 deletions
+4 -6
View File
@@ -1438,10 +1438,8 @@ int check_for_chan_flood(aClient *cptr, aClient *sptr, aChannel *chptr)
sendto_channel_butserv(chptr, &me,
":%s KICK %s %s :%s", me.name,
chptr->chname, sptr->name, comment);
sendto_serv_butone_token(cptr, me.name,
MSG_KICK, TOK_KICK,
"%s %s :%s",
chptr->chname, sptr->name, comment);
sendto_serv_butone(cptr, ":%s KICK %s %s :%s",
me.name, chptr->chname, sptr->name, comment);
remove_user_from_channel(sptr, chptr);
return 1;
}
@@ -1788,8 +1786,8 @@ void set_channel_mlock(aClient *cptr, aClient *sptr, aChannel *chptr, const char
if (propagate)
{
sendto_serv_butone_token(cptr, cptr->name, MSG_MLOCK, TOK_MLOCK, "%B %s :%s",
chptr->creationtime, chptr->chname,
sendto_serv_butone(cptr, ":%s MLOCK %B %s :%s",
cptr->name, chptr->creationtime, chptr->chname,
BadPtr(chptr->mode_lock) ? "" : chptr->mode_lock);
}
}
+2 -4
View File
@@ -716,9 +716,7 @@ static void exit_one_client(aClient *cptr, aClient *sptr, aClient *from, char *c
if ((sptr->flags & FLAGS_KILLED) == 0)
{
if (split == 0)
sendto_serv_butone_token
(cptr, sptr->name, MSG_QUIT, TOK_QUIT,
":%s", comment);
sendto_serv_butone(cptr, ":%s QUIT :%s", sptr->name, comment);
else
/*
* Then this is a split, only old (stupid)
@@ -1121,7 +1119,7 @@ void kick_insecure_users(aChannel *chptr)
sendto_channel_butserv(chptr, &me, ":%s KICK %s %s :%s", me.name, chptr->chname, cptr->name, comment);
}
sendto_serv_butone_token(&me, me.name, MSG_KICK, TOK_KICK, "%s %s :%s", chptr->chname, cptr->name, comment);
sendto_serv_butone(&me, ":%s KICK %s %s :%s", me.name, chptr->chname, cptr->name, comment);
remove_user_from_channel(cptr, chptr);
}
+1 -2
View File
@@ -80,8 +80,7 @@ void iNAH_host(aClient *sptr, char *host)
}
sptr->user->virthost = strdup(host);
if (MyConnect(sptr))
sendto_serv_butone_token(&me, sptr->name, MSG_SETHOST,
TOK_SETHOST, "%s", sptr->user->virthost);
sendto_serv_butone(&me, ":%s SETHOST :%s", sptr->name, sptr->user->virthost);
sptr->umodes |= UMODE_SETHOST;
if (UHOST_ALLOWED == UHALLOW_REJOIN)
+2 -4
View File
@@ -1314,8 +1314,7 @@ void sendto_snomask_global(int snomask, char *pattern, ...)
*p++ = Snomask_Table[i].flag;
*p = '\0';
sendto_serv_butone_token(NULL, me.name, MSG_SENDSNO, TOK_SENDSNO,
"%s :%s", snobuf, nbuf);
sendto_serv_butone(&me, ":%s SENDSNO %s :%s", me.name, "%s :%s", snobuf, nbuf);
}
/** Send to specified snomask - local.
@@ -1366,8 +1365,7 @@ void sendto_snomask_normal_global(int snomask, char *pattern, ...)
*p++ = Snomask_Table[i].flag;
*p = '\0';
sendto_serv_butone_token(NULL, me.name, MSG_SENDSNO, TOK_SENDSNO,
"%s :%s", snobuf, nbuf);
sendto_serv_butone(&me, ":%s SENDSNO %s :%s", me.name, "%s :%s", snobuf, nbuf);
}