summaryrefslogtreecommitdiffstats
path: root/src/const_vars.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/const_vars.hpp')
-rw-r--r--src/const_vars.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/const_vars.hpp b/src/const_vars.hpp
new file mode 100644
index 0000000..9c7b1c5
--- /dev/null
+++ b/src/const_vars.hpp
@@ -0,0 +1,16 @@
+#ifndef CONSTVARS_H
+#define CONSTVARS_H
+
+/*
+ * In chat messages look like that:
+ * Knight385: Hello, guys!
+ *
+*/
+
+const int max_name_len = 18;
+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
+
+#endif \ No newline at end of file