Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / include / ircd_reply.h
1 /*
2  * IRC - Internet Relay Chat, include/ircd_reply.h
3  * Copyright (C) 1990 Jarkko Oikarinen and
4  *                    University of Oulu, Computing Center
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  *
20  * $Id$
21  */
22 #ifndef INCLUDED_ircd_reply_h
23 #define INCLUDED_ircd_reply_h
24
25 struct Client;
26
27 extern int protocol_violation(struct Client* cptr, const char* pattern, ...);
28 extern int need_more_params(struct Client* cptr, const char* cmd);
29 extern int send_error_to_client(struct Client* cptr, int error, ...);
30 extern int send_reply(struct Client* to, int reply, ...);
31
32 #define SND_EXPLICIT    0x40000000      /* first arg is a pattern to use */
33
34 #endif /* INCLUDED_ircd_reply_h */
35