From 42ae8ab21fb825727bf6f67ec9f61dfd5fc5a199 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 5 Aug 2017 22:34:17 +0100 Subject: [PATCH] ircd: check caps for user in sendto_common_channels_local --- ircd/send.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircd/send.c b/ircd/send.c index fe9aceec..70a24ab9 100644 --- a/ircd/send.c +++ b/ircd/send.c @@ -897,7 +897,8 @@ sendto_common_channels_local(struct Client *user, int cap, int negcap, const cha /* this can happen when the user isnt in any channels, but we still * need to send them the data, ie a nick change */ - if(MyConnect(user) && (user->serial != current_serial)) + if(MyConnect(user) && (user->serial != current_serial) + && IsCapable(user, cap) && NotCapable(user, negcap)) send_linebuf(user, &linebuf); rb_linebuf_donebuf(&linebuf);