]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/irc-write.h
Don't abort startup when setgid/setuid() fails with EINVAL
[ngircd-alex.git] / src / ngircd / irc-write.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * Please read the file COPYING, README and AUTHORS for more information.
10  */
11
12 #ifndef __irc_write_h__
13 #define __irc_write_h__
14
15 /**
16  * @file
17  * Sending IRC commands over the network (header)
18  */
19
20 GLOBAL bool IRC_WriteErrClient PARAMS((CLIENT *Client, const char *Format, ...));
21
22 GLOBAL bool IRC_WriteStrClient PARAMS((CLIENT *Client, const char *Format, ...));
23 GLOBAL bool IRC_WriteStrClientPrefix PARAMS((CLIENT *Client, CLIENT *Prefix,
24                 const char *Format, ...));
25
26 GLOBAL void IRC_WriteStrChannel PARAMS((CLIENT *Client, CHANNEL *Chan,
27                 bool Remote, const char *Format, ...));
28 GLOBAL void IRC_WriteStrChannelPrefix PARAMS((CLIENT *Client, CHANNEL *Chan,
29                 CLIENT *Prefix, bool Remote, const char *Format, ...));
30
31 GLOBAL void IRC_WriteStrServers PARAMS((CLIENT *ExceptOf,
32                 const char *Format, ...));
33 GLOBAL void IRC_WriteStrServersPrefix PARAMS((CLIENT *ExceptOf, CLIENT *Prefix,
34                 const char *Format, ...));
35 GLOBAL void IRC_WriteStrServersPrefixFlag PARAMS((CLIENT *ExceptOf,
36                 CLIENT *Prefix, char Flag, const char *Format, ...));
37 GLOBAL void IRC_WriteStrServersPrefixFlag_CB PARAMS((CLIENT *ExceptOf,
38                 CLIENT *Prefix, char Flag,
39                 void (*callback)(CLIENT *, CLIENT *, void *), void *cb_data));
40
41 GLOBAL void IRC_WriteStrRelatedPrefix PARAMS((CLIENT *Client, CLIENT *Prefix,
42                 bool Remote, const char *Format, ...));
43
44 GLOBAL void IRC_SendWallops PARAMS((CLIENT *Client, CLIENT *From,
45                 const char *Format, ...));
46
47 GLOBAL void IRC_SetPenalty PARAMS((CLIENT *Client, time_t Seconds));
48
49 #endif
50
51 /* -eof- */