mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-04 15:13:12 +02:00
Add TS to s2s MODE messages generated by SVS(2)MODE
(if the source is a server).
This commit is contained in:
@@ -298,7 +298,7 @@ void channel_svsmode(Client *client, int parc, const char *parv[])
|
||||
sendto_channel(channel, client, client, 0, 0, SEND_LOCAL, mtags,
|
||||
":%s MODE %s %s %s",
|
||||
client->name, channel->name, modebuf, parabuf);
|
||||
sendto_server(NULL, 0, 0, mtags, ":%s MODE %s %s %s", client->id, channel->name, modebuf, parabuf);
|
||||
sendto_server(NULL, 0, 0, mtags, ":%s MODE %s %s %s%s", client->id, channel->name, modebuf, parabuf, IsServer(client)?" 0":"");
|
||||
|
||||
/* Activate this hook just like cmd_mode.c */
|
||||
RunHook(HOOKTYPE_REMOTE_CHANMODE, client, channel, mtags, modebuf, parabuf, 0, 0, &destroy_channel);
|
||||
@@ -615,7 +615,7 @@ void add_send_mode_param(Channel *channel, Client *from, char what, char mode, c
|
||||
sendto_channel(channel, from, from, 0, 0, SEND_LOCAL, mtags,
|
||||
":%s MODE %s %s %s",
|
||||
from->name, channel->name, modebuf, parabuf);
|
||||
sendto_server(NULL, 0, 0, mtags, ":%s MODE %s %s %s", from->id, channel->name, modebuf, parabuf);
|
||||
sendto_server(NULL, 0, 0, mtags, ":%s MODE %s %s %s%s", from->id, channel->name, modebuf, parabuf, IsServer(from)?" 0":"");
|
||||
free_message_tags(mtags);
|
||||
send = 0;
|
||||
*parabuf = 0;
|
||||
|
||||
Reference in New Issue
Block a user