ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
input.h
Idź do dokumentacji tego pliku.
1 /*
2  * (C) Copyright 2004-2005 Michal 'GiM' Spadlinski <gim at skrzynka dot pl>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License Version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16  */
17 
18 #ifndef __EKG_PLUGINS_IRC_INPUT_H
19 #define __EKG_PLUGINS_IRC_INPUT_H
20 
21 #include <ekg/sessions.h>
22 #include "irc.h"
23 
24 char *irc_ircoldcolstr_juststrip(session_t *sess, char *inp);
25 char *irc_ircoldcolstr_to_ekgcolstr(session_t *s, char *str, int strip);
26 char *irc_ircoldcolstr_to_ekgcolstr_nf(session_t *sess, char *str, int strip);
27 char *ctcp_parser(session_t *sess, int ispriv, char *sender, char *recp, char *s);
28 
29 
30 #define CTCP_COMMAND(x) static int x(session_t *s, irc_private_t *j, int number, \
31  char *ctcp, char *sender, char*idhost, char *targ)
32 typedef int (*CTCP_Cmd) (session_t *s, irc_private_t *j, int number,
33  char *ctcp, char *sender, char *idhost, char *targ);
34 
35 typedef struct {
36  char *name;
37  int handled;
38 } ctcp_t;
39 
42 
43 static const ctcp_t ctcps[] = {
44  { "ACTION", 1 },
45  { "DCC", 0 },
46  { "SED", 0 },
47 
48  { "FINGER", 1 },
49  { "VERSION", 1 },
50  { "SOURCE", 1 },
51  { "USERINFO", 1 },
52  { "CLIENTINFO", 1 },
53  { "PING", 1 },
54  { "TIME", 1 },
55  { "ERRMSG", 1 },
56  { NULL, 0 }
57 };
58 
59 #endif
60 
61 /*
62  * Local Variables:
63  * mode: c
64  * c-file-style: "k&r"
65  * c-basic-offset: 8
66  * indent-tabs-mode: t
67  * End:
68  */