Erwaehnungen markieren und aufmerksam machen.
Bei direkter Kommunikation sowie Rufen und Sagen wird eine
Benachrichtigung (aktuell Piepston) gesendet, wenn der Char
direkt mittels eines @charname erwaehnt wird (Mention).
Ausserdem werden diese Erwaehnungen farblich markiert,
sofern der Client das unterstuetzt.
Change-Id: Ifd2e87fb994edc5a76a8071ed2ff3684232250b5
diff --git a/sys/ansi.h b/sys/ansi.h
index 4e4d244..0f37a8e 100644
--- a/sys/ansi.h
+++ b/sys/ansi.h
@@ -7,11 +7,15 @@
#ifndef _ANSI_
#define _ANSI_
+// the first 5 are also supported by VT100
#define ANSI_BOLD "[1m"
#define ANSI_UNDERL "[4m"
#define ANSI_BLINK "[5m"
#define ANSI_INVERS "[7m"
+#define ANSI_NORMAL "[0m"
+
+// From here on only supported by ANSI
#define ANSI_BLACK "[30m"
#define ANSI_RED "[31m"
#define ANSI_GREEN "[32m"
@@ -30,6 +34,4 @@
#define ANSI_BG_CYAN "[46m"
#define ANSI_BG_WHITE "[47m"
-#define ANSI_NORMAL "[0m"
-
#endif
diff --git a/sys/player/comm.h b/sys/player/comm.h
index a0e7b38..281881e 100644
--- a/sys/player/comm.h
+++ b/sys/player/comm.h
@@ -36,9 +36,10 @@
#define MB_SAY 4096
#define MB_CHANNEL 8192
#define MB_SHOUT 16384
+#define MB_MENTION 0x8000
#define MB_MISC 0x10000 // alle anderen Aktionen ohne eigenen Filter
// Flags < 1048576 (2^20) reserviert fuer Flags
-#define MB_ALL (MB_SAY | MB_TELL | MB_CHANNEL | MB_SHOUT | MB_MISC)
+#define MB_ALL (MB_SAY | MB_TELL | MB_CHANNEL | MB_SHOUT | MB_MENTION | MB_MISC)
// definitions for Message()