~rcr/rirc

ref: 7ca2a99a605b7e0b88fa85bc43a8fadc13695ba8 rirc/src/handlers/irc_ctcp.h -rw-r--r-- 631 bytes
7ca2a99a — Richard Robbins refactor order 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 IRC_CTCP_H
#define 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