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
Fix usermodes harder when they are set early during registration.
[ircu2.10.12-pk.git]
/
include
/
send.h
diff --git
a/include/send.h
b/include/send.h
index a37f628aedd3a60adade993a11471f1b1cd232c3..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
@@
-9,21
+8,24
@@
#include <stdarg.h> /* va_list */
#define INCLUDED_stdarg_h
#endif
#include <stdarg.h> /* va_list */
#define INCLUDED_stdarg_h
#endif
+#ifndef INCLUDED_time_h
+#include <time.h> /* time_t */
+#define INCLUDED_time_h
+#endif
struct Channel;
struct Client;
struct DBuf;
struct MsgBuf;
struct Channel;
struct Client;
struct DBuf;
struct MsgBuf;
-#define WALL_DESYNCH 1
-#define WALL_WALLOPS 2
-#define WALL_WALLUSERS 3
-
/*
* Prototypes
*/
/*
* Prototypes
*/
+extern struct SLink *opsarray[];
+
extern void send_buffer(struct Client* to, struct MsgBuf* buf, int prio);
extern void send_buffer(struct Client* to, struct MsgBuf* buf, int prio);
+extern void kill_highest_sendq(int servers_too);
extern void flush_connections(struct Client* cptr);
extern void send_queued(struct Client *to);
extern void flush_connections(struct Client* cptr);
extern void send_queued(struct Client *to);
@@
-42,21
+44,41
@@
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,
const char *pattern, ...);
/* Send command to all channels user is on */
/* Send command to all servers except one */
extern void sendcmdto_serv_butone(struct Client *from, const char *cmd,
const char *tok, struct Client *one,
const char *pattern, ...);
/* Send command to all channels user is on */
-extern void sendcmdto_common_channels(struct Client *from, const char *cmd,
- const char *tok, const char *pattern,
- ...);
-
+extern void sendcmdto_common_channels_butone(struct Client *from,
+ const char *cmd,
+ const char *tok,
+ struct Client *one,
+ const char *pattern, ...);
/* Send command to all channel users on this server */
/* Send command to all channel users on this server */
-extern void sendcmdto_channel_butserv(struct Client *from, const char *cmd,
- const char *tok, struct Channel *to,
- const char *pattern, ...);
+extern void sendcmdto_channel_butserv_butone(struct Client *from,
+ const char *cmd,
+ const char *tok,
+ struct Channel *to,
+ struct Client *one,
+ unsigned int skip,
+ const char *pattern, ...);
+
+/* Send command to all servers interested in a channel */
+extern void sendcmdto_channel_servers_butone(struct Client *from,
+ const char *cmd,
+ const char *tok,
+ struct Channel *to,
+ struct Client *one,
+ unsigned int skip,
+ const char *pattern, ...);
/* Send command to all interested channel users */
extern void sendcmdto_channel_butone(struct Client *from, const char *cmd,
/* Send command to all interested channel users */
extern void sendcmdto_channel_butone(struct Client *from, const char *cmd,
@@
-64,13
+86,20
@@
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_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 */
extern void sendwallto_group_butone(struct Client *from, int type,
/* Send command to all users having a particular flag set */
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 /**< 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,
@@
-82,6
+111,11
@@
extern void sendcmdto_match_butone(struct Client *from, const char *cmd,
extern void sendto_opmask_butone(struct Client *one, unsigned int mask,
const char *pattern, ...);
extern void sendto_opmask_butone(struct Client *one, unsigned int mask,
const char *pattern, ...);
+/* Same as above, but rate limited */
+extern void sendto_opmask_butone_ratelimited(struct Client *one,
+ unsigned int mask, time_t *rate,
+ const char *pattern, ...);
+
/* Same as above, but with variable argument list */
extern void vsendto_opmask_butone(struct Client *one, unsigned int mask,
const char *pattern, va_list vl);
/* Same as above, but with variable argument list */
extern void vsendto_opmask_butone(struct Client *one, unsigned int mask,
const char *pattern, va_list vl);