projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correctly skip non-servers when evaluating C-rules.
[ircu2.10.12-pk.git]
/
include
/
send.h
diff --git
a/include/send.h
b/include/send.h
index 11f7201a6f5be4cf0b3d1de2bd9b03679c5cd504..1825e4db2b5a9a98519f15f7bc5766dff8de0130 100644
(file)
--- a/
include/send.h
+++ b/
include/send.h
@@
-1,7
+1,6
@@
-/*
- * send.h
- *
- * $Id$
+/** @file send.h
+ * @brief Send messages to certain targets.
+ * @version $Id$
*/
#ifndef INCLUDED_send_h
#define INCLUDED_send_h
*/
#ifndef INCLUDED_send_h
#define INCLUDED_send_h
@@
-22,6
+21,8
@@
struct MsgBuf;
/*
* Prototypes
*/
/*
* Prototypes
*/
+extern struct SLink *opsarray[];
+
extern void send_buffer(struct Client* to, struct MsgBuf* buf, int prio);
extern void kill_highest_sendq(int servers_too);
extern void send_buffer(struct Client* to, struct MsgBuf* buf, int prio);
extern void kill_highest_sendq(int servers_too);
@@
-43,6
+44,12
@@
extern void sendcmdto_prio_one(struct Client *from, const char *cmd,
const char *tok, struct Client *to,
const char *pattern, ...);
const char *tok, struct Client *to,
const char *pattern, ...);
+/* Send command to servers by flags except one */
+extern void sendcmdto_flag_serv_butone(struct Client *from, const char *cmd,
+ const char *tok, struct Client *one,
+ int require, int forbid,
+ const char *pattern, ...);
+
/* Send command to all servers except one */
extern void sendcmdto_serv_butone(struct Client *from, const char *cmd,
const char *tok, struct Client *one,
/* Send command to all servers except one */
extern void sendcmdto_serv_butone(struct Client *from, const char *cmd,
const char *tok, struct Client *one,
@@
-79,10
+86,10
@@
extern void sendcmdto_channel_butone(struct Client *from, const char *cmd,
struct Client *one, unsigned int skip,
const char *pattern, ...);
struct Client *one, unsigned int skip,
const char *pattern, ...);
-#define SKIP_DEAF 0x01 /* skip users that are +d */
-#define SKIP_BURST 0x02 /* skip users that are bursting */
-#define SKIP_NONOPS 0x04 /* skip users that aren't chanops */
-#define SKIP_NONVOICES 0x08 /* skip users that aren't voiced (includes
+#define SKIP_DEAF 0x01 /*
*<
skip users that are +d */
+#define SKIP_BURST 0x02 /*
*<
skip users that are bursting */
+#define SKIP_NONOPS 0x04 /*
*<
skip users that aren't chanops */
+#define SKIP_NONVOICES 0x08 /*
*<
skip users that aren't voiced (includes
chanops) */
/* Send command to all users having a particular flag set */
chanops) */
/* Send command to all users having a particular flag set */
@@
-90,9
+97,9
@@
extern void sendwallto_group_butone(struct Client *from, int type,
struct Client *one, const char *pattern,
...);
struct Client *one, const char *pattern,
...);
-#define WALL_DESYNCH 1
-#define WALL_WALLOPS 2
-#define WALL_WALLUSERS 3
+#define WALL_DESYNCH 1
/**< send as a DESYNCH message */
+#define WALL_WALLOPS 2
/**< send to all +w opers */
+#define WALL_WALLUSERS 3
/**< send to all +w users */
/* Send command to all matching clients */
extern void sendcmdto_match_butone(struct Client *from, const char *cmd,
/* Send command to all matching clients */
extern void sendcmdto_match_butone(struct Client *from, const char *cmd,