]>
jfr.im git - solanum.git/blob - include/send.h
2 * ircd-ratbox: A slightly useful ircd.
3 * send.h: A header for the message sending functions.
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2004 ircd-ratbox development team
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
25 #ifndef INCLUDED_send_h
26 #define INCLUDED_send_h
29 #include "ircd_defs.h"
30 #include "config.h" /* HAVE_STDARG_H */
36 /* The nasty global also used in s_serv.c for server bursts */
37 extern unsigned long current_serial
;
39 extern struct Client
*remote_rehash_oper_p
;
41 extern void send_pop_queue(struct Client
*);
43 extern void send_queued(struct Client
*to
);
45 extern void sendto_one(struct Client
*target_p
, const char *, ...) AFP(2, 3);
46 extern void sendto_one_notice(struct Client
*target_p
,const char *, ...) AFP(2, 3);
47 extern void sendto_one_prefix(struct Client
*target_p
, struct Client
*source_p
,
48 const char *command
, const char *, ...) AFP(4, 5);
49 extern void sendto_one_numeric(struct Client
*target_p
,
50 int numeric
, const char *, ...) AFP(3, 4);
52 extern void sendto_server(struct Client
*one
, struct Channel
*chptr
,
53 unsigned long caps
, unsigned long nocaps
,
54 const char *format
, ...) AFP(5, 6);
56 extern void sendto_channel_flags(struct Client
*one
, int type
, struct Client
*source_p
,
57 struct Channel
*chptr
, const char *, ...) AFP(5, 6);
58 extern void sendto_channel_opmod(struct Client
*one
, struct Client
*source_p
,
59 struct Channel
*chptr
, const char *command
,
62 extern void sendto_channel_local(int type
, struct Channel
*, const char *, ...) AFP(3, 4);
63 extern void sendto_channel_local_butone(struct Client
*, int type
, struct Channel
*, const char *, ...) AFP(4, 5);
65 extern void sendto_channel_local_with_capability(int type
, int caps
, int negcaps
, struct Channel
*, const char *, ...) AFP(5, 6);
66 extern void sendto_channel_local_with_capability_butone(struct Client
*, int type
, int caps
, int negcaps
, struct Channel
*,
67 const char *, ...) AFP(6, 7);
69 extern void sendto_common_channels_local(struct Client
*, int cap
, int negcap
, const char *, ...) AFP(4, 5);
70 extern void sendto_common_channels_local_butone(struct Client
*, int cap
, int negcap
, const char *, ...) AFP(4, 5);
73 extern void sendto_match_butone(struct Client
*, struct Client
*,
74 const char *, int, const char *, ...) AFP(5, 6);
75 extern void sendto_match_servs(struct Client
*source_p
, const char *mask
,
76 int capab
, int, const char *, ...) AFP(5, 6);
78 extern void sendto_monitor(struct monitor
*monptr
, const char *, ...) AFP(2, 3);
80 extern void sendto_anywhere(struct Client
*, struct Client
*, const char *,
81 const char *, ...) AFP(4, 5);
82 extern void sendto_local_clients_with_capability(int cap
, const char *pattern
, ...) AFP(2, 3);
84 extern void sendto_realops_snomask(int, int, const char *, ...) AFP(3, 4);
85 extern void sendto_realops_snomask_from(int, int, struct Client
*, const char *, ...) AFP(4, 5);
87 extern void sendto_wallops_flags(int, struct Client
*, const char *, ...) AFP(3, 4);
89 extern void kill_client(struct Client
*client_p
, struct Client
*diedie
,
90 const char *pattern
, ...) AFP(3, 4);
91 extern void kill_client_serv_butone(struct Client
*one
, struct Client
*source_p
,
92 const char *pattern
, ...) AFP(3, 4);
97 #define L_NETWIDE 256 /* OR with L_ALL or L_OPER */
99 #define NOCAPS 0 /* no caps */
101 /* used when sending to #mask or $mask */
102 #define MATCH_SERVER 1
105 #endif /* INCLUDED_send_h */