2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001-2008 Alexander Barton (alex@barton.de)
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.
11 * Sending IRC commands over the network (header)
14 #ifndef __irc_write_h__
15 #define __irc_write_h__
17 GLOBAL bool IRC_WriteStrClient PARAMS((CLIENT *Client, const char *Format, ...));
18 GLOBAL bool IRC_WriteStrClientPrefix PARAMS((CLIENT *Client, CLIENT *Prefix,
19 const char *Format, ...));
21 GLOBAL bool IRC_WriteStrChannel PARAMS((CLIENT *Client, CHANNEL *Chan,
22 bool Remote, const char *Format, ...));
23 GLOBAL bool IRC_WriteStrChannelPrefix PARAMS((CLIENT *Client, CHANNEL *Chan,
24 CLIENT *Prefix, bool Remote, const char *Format, ...));
26 GLOBAL void IRC_WriteStrServers PARAMS((CLIENT *ExceptOf,
27 const char *Format, ...));
28 GLOBAL void IRC_WriteStrServersPrefix PARAMS((CLIENT *ExceptOf, CLIENT *Prefix,
29 const char *Format, ...));
30 GLOBAL void IRC_WriteStrServersPrefixFlag PARAMS((CLIENT *ExceptOf,
31 CLIENT *Prefix, char Flag, const char *Format, ...));
32 GLOBAL void IRC_WriteStrServersPrefixFlag_CB PARAMS((CLIENT *ExceptOf,
33 CLIENT *Prefix, char Flag,
34 void (*callback)(CLIENT *, CLIENT *, void *), void *cb_data));
36 GLOBAL bool IRC_WriteStrRelatedPrefix PARAMS((CLIENT *Client, CLIENT *Prefix,
37 bool Remote, const char *Format, ...));
39 GLOBAL void IRC_SendWallops PARAMS((CLIENT *Client, CLIENT *From,
40 const char *Format, ...));
42 GLOBAL void IRC_SetPenalty PARAMS((CLIENT *Client, time_t Seconds));