ircd: check caps for user in sendto_common_channels_local

This commit is contained in:
Simon Arlott 2017-08-05 22:34:17 +01:00
parent 60f1d711e6
commit 42ae8ab21f
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -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 /* this can happen when the user isnt in any channels, but we still
* need to send them the data, ie a nick change * 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); send_linebuf(user, &linebuf);
rb_linebuf_donebuf(&linebuf); rb_linebuf_donebuf(&linebuf);