X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2Fsend.h;h=1fd642136d40220aada363669b7034d88c931aae;hb=a63ed96a58c1317dba4e3d6ca5bccddcc4ab379f;hp=a37f628aedd3a60adade993a11471f1b1cd232c3;hpb=408f75598aad0ce785b2cd13262be1d49ddbbc2a;p=ircu2.10.12-pk.git diff --git a/include/send.h b/include/send.h index a37f628..1fd6421 100644 --- a/include/send.h +++ b/include/send.h @@ -9,16 +9,16 @@ #include /* va_list */ #define INCLUDED_stdarg_h #endif +#ifndef INCLUDED_time_h +#include /* time_t */ +#define INCLUDED_time_h +#endif struct Channel; struct Client; struct DBuf; struct MsgBuf; -#define WALL_DESYNCH 1 -#define WALL_WALLOPS 2 -#define WALL_WALLUSERS 3 - /* * Prototypes */ @@ -70,7 +70,12 @@ extern void sendcmdto_channel_butone(struct Client *from, const char *cmd, /* 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 +#define WALL_WALLOPS 2 +#define WALL_WALLUSERS 3 /* Send command to all matching clients */ extern void sendcmdto_match_butone(struct Client *from, const char *cmd, @@ -82,6 +87,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, ...); +/* 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);