summaryrefslogtreecommitdiffstats
path: root/src/const_vars.hpp
blob: 54ef70f32d3a7f128a594b092fdc289de5da896f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef CONSTVARS_H
#define CONSTVARS_H

/*
 * In chat messages look like that:
 * Knight385: Hello, guys!
 * 
*/

const int max_name_len = 18;
const int min_name_len = 3;
const int oneline_len = 57;
const int max_usermsg_len = oneline_len * 3 - max_name_len - 2; // ": " = 2
							// 57 * 3 - 18 - 2 = 151
const int max_msg_len = oneline_len * 3; // 57*3 = 171

const int usual_msg = 0; // no first char 
const int system_msg = 1;
const char system_char = '#';

#endif