diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-28 17:05:25 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-28 17:05:25 +0000 |
commit | 33b59d73c703b7308230dbd61909d00f6fd9671c (patch) | |
tree | 2e38cee5b1f9947e6c97ac0800bd4fa7ee62b005 /src/send.c | |
parent | 576dc8caf855dab4be7b9d1b74dbdf6df72aff24 (diff) |
- Removed sendto_channel_remote()
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2957 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 54 |
1 files changed, 0 insertions, 54 deletions
@@ -612,60 +612,6 @@ sendto_channel_local_butone(struct Client *one, unsigned int type, unsigned int } } - -/* sendto_channel_remote() - * - * inputs - Client not to send towards - * - Client from whom message is from - * - member status mask, e.g. CHFL_CHANOP | CHFL_VOICE - * - pointer to channel to send to - * - var args pattern - * output - NONE - * side effects - Send a message to all members of a channel that are - * remote to this server. - */ -void -sendto_channel_remote(struct Client *one, struct Client *from, unsigned int type, - const unsigned int caps, const unsigned int nocaps, - struct Channel *chptr, const char *pattern, ...) -{ - va_list args; - char buffer[IRCD_BUFSIZE]; - int len = 0; - dlink_node *ptr = NULL; - - va_start(args, pattern); - len = send_format(buffer, sizeof(buffer), pattern, args); - va_end(args); - - ++current_serial; - - DLINK_FOREACH(ptr, chptr->members.head) - { - struct Membership *ms = ptr->data; - struct Client *target_p = ms->client_p; - - if (type != 0 && (ms->flags & type) == 0) - continue; - - if (MyConnect(target_p)) - continue; - - target_p = target_p->from; - - if (target_p == one->from || - ((target_p->from->localClient->caps & caps) != caps) || - ((target_p->from->localClient->caps & nocaps) != 0)) - continue; - - if (target_p->from->localClient->serial != current_serial) - { - send_message(target_p, buffer, len); - target_p->from->localClient->serial = current_serial; - } - } -} - /* ** match_it() and sendto_match_butone() ARE only used ** to send a msg to all ppl on servers/hosts that match a specified mask |