*
* inputs - pointer to client
* - capability mask
+ * - negated capability mask
* - pattern to send
* output - NONE
* side effects - Sends a message to all people on local server who are
* used by m_nick.c and exit_one_client.
*/
void
-sendto_common_channels_local(struct Client *user, int cap, const char *pattern, ...)
+sendto_common_channels_local(struct Client *user, int cap, int negcap, const char *pattern, ...)
{
va_list args;
rb_dlink_node *ptr;
if(IsIOError(target_p) ||
target_p->serial == current_serial ||
- !IsCapable(target_p, cap))
+ !IsCapable(target_p, cap) ||
+ !NotCapable(target_p, negcap))
continue;
target_p->serial = current_serial;
*
* inputs - pointer to client
* - capability mask
+ * - negated capability mask
* - pattern to send
* output - NONE
* side effects - Sends a message to all people on local server who are
* in same channel with user, except for user itself.
*/
void
-sendto_common_channels_local_butone(struct Client *user, int cap, const char *pattern, ...)
+sendto_common_channels_local_butone(struct Client *user, int cap, int negcap, const char *pattern, ...)
{
va_list args;
rb_dlink_node *ptr;
if(IsIOError(target_p) ||
target_p->serial == current_serial ||
- !IsCapable(target_p, cap))
+ !IsCapable(target_p, cap) ||
+ !NotCapable(target_p, negcap))
continue;
target_p->serial = current_serial;