*first commit :D*
[NeonServV5.git] / main.h
1 #ifndef _main_h
2 #define _main_h
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <string.h>
7 #include <ctype.h>
8 #include <sys/types.h>
9 #include <sys/socket.h>
10 #include <netinet/in.h>
11 #include <arpa/inet.h>
12 #include <unistd.h>
13 #include <netdb.h>
14
15
16 #define NICKLEN         30
17 #define USERLEN         10
18 #define HOSTLEN         63
19 #define REALLEN         50
20 #define TOPICLEN        500
21 #define CHANNELLEN      200
22
23 //valid nick chars
24 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^_`"
25 //the first char is a little bit different
26 //                              0        1         2         3         4         5          6
27 //                              1234567890123456789012345678901234567890123456789012345678 9012   62
28 #define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
29 #define VALID_NICK_CHARS_FIRST_LEN 62
30
31 #endif