From 41c6374550872d16a7b64dcab7891c88bb990a7b Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 2 Jun 2009 02:48:22 -0500 Subject: [PATCH] presence: send..._with_capability...(): don't send if the client does not have the capab but isn't on a channel --- src/send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/send.c b/src/send.c index 5cdd232..57e9df8 100644 --- a/src/send.c +++ b/src/send.c @@ -817,7 +817,7 @@ sendto_common_channels_local_with_capability(struct Client *user, int capability /* 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, capability)) send_linebuf(user, &linebuf); rb_linebuf_donebuf(&linebuf); @@ -936,7 +936,7 @@ sendto_common_channels_local_with_capability_butone(struct Client *user, int cap /* 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, capability)) send_linebuf(user, &linebuf); rb_linebuf_donebuf(&linebuf);