~rcr/rirc

ref: 3e478875afa86a8af3832419bddbd019ed7d91dd rirc/src/handlers/irc_ctcp.h -rw-r--r-- 659 bytes
3e478875 — Richard Robbins refactor namespacing of includes 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef RIRC_HANDLERS_IRC_CTCP_H
#define RIRC_HANDLERS_IRC_CTCP_H

#include "src/components/server.h"

/* Summary of CTCP implementation:
 *
 *  NOTICE <targ> :\x01ACTION <text>\x01
 *  NOTICE <targ> :\x01CLIENTINFO 1*<arg>\x01
 *  NOTICE <targ> :\x01FINGER <text>\x01
 *  NOTICE <targ> :\x01PING 1*<arg>\x01
 *  NOTICE <targ> :\x01SOURCE <text>\x01
 *  NOTICE <targ> :\x01TIME <text>\x01
 *  NOTICE <targ> :\x01USERINFO <text>\x01
 *  NOTICE <targ> :\x01VERSION <text>\x01
 */

#define IS_CTCP(M) ((M)[0] == 0x01)

int ctcp_request(struct server*, const char*, const char*, char*);
int ctcp_response(struct server*, const char*, const char*, char*);

#endif