summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-28 17:05:25 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-28 17:05:25 +0000
commit33b59d73c703b7308230dbd61909d00f6fd9671c (patch)
tree2e38cee5b1f9947e6c97ac0800bd4fa7ee62b005
parent576dc8caf855dab4be7b9d1b74dbdf6df72aff24 (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
-rw-r--r--include/send.h3
-rw-r--r--src/send.c54
2 files changed, 0 insertions, 57 deletions
diff --git a/include/send.h b/include/send.h
index 15d2e75..ed75187 100644
--- a/include/send.h
+++ b/include/send.h
@@ -81,9 +81,6 @@ extern void sendto_channel_local(unsigned int, int, struct Channel *,
const char *, ...) AFP(4,5);
extern void sendto_channel_local_butone(struct Client *, unsigned int, unsigned int, struct Channel *,
const char *, ...) AFP(5,6);
-extern void sendto_channel_remote(struct Client *, struct Client *, unsigned int,
- const unsigned int, const unsigned int,
- struct Channel *, const char *, ...) AFP(7,8);
extern void sendto_server(struct Client *,
const unsigned int,
const unsigned int, const char *, ...) AFP(4,5);
diff --git a/src/send.c b/src/send.c
index 1025f90..48929fc 100644
--- a/src/send.c
+++ b/src/send.c
@@ -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