X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/8f43ad3f726608e1f76329b21e4e3de95949957f..4b1cce65ed584cc0fdc9f3c5ec84373fdf2566a8:/ircd/chmode.c diff --git a/ircd/chmode.c b/ircd/chmode.c index ec826538..591843b5 100644 --- a/ircd/chmode.c +++ b/ircd/chmode.c @@ -1778,8 +1778,8 @@ set_channel_mode(struct Client *client_p, struct Client *source_p, *mbuf = '\0'; if(cur_len > mlen) - sendto_channel_local(flags, chptr, "%s %s", modebuf, - parabuf); + sendto_channel_local(IsServer(source_p) ? fakesource_p : source_p, + flags, chptr, "%s %s", modebuf, parabuf); else continue; @@ -1815,7 +1815,8 @@ set_channel_mode(struct Client *client_p, struct Client *source_p, *mbuf = '\0'; if(cur_len > mlen) - sendto_channel_local(flags, chptr, "%s %s", modebuf, parabuf); + sendto_channel_local(IsServer(source_p) ? fakesource_p : source_p, + flags, chptr, "%s %s", modebuf, parabuf); } /* only propagate modes originating locally, or if we're hubbing */