ircd: check caps for user in sendto_common_channels_local
This commit is contained in:
parent
60f1d711e6
commit
42ae8ab21f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue