From 1ae474689d564e1feba9924842f05e06600d83a1 Mon Sep 17 00:00:00 2001 From: oy Date: Tue, 5 Jul 2011 21:54:10 +0200 Subject: added moderator support for the remote console. #518 --- src/engine/console.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/engine/console.h') diff --git a/src/engine/console.h b/src/engine/console.h index f8ec67b0..e650ac47 100644 --- a/src/engine/console.h +++ b/src/engine/console.h @@ -14,7 +14,10 @@ public: { OUTPUT_LEVEL_STANDARD=0, OUTPUT_LEVEL_ADDINFO, - OUTPUT_LEVEL_DEBUG + OUTPUT_LEVEL_DEBUG, + + ACCESS_LEVEL_ADMIN=0, + ACCESS_LEVEL_MOD, }; // TODO: rework this interface to reduce the amount of virtual calls @@ -62,6 +65,8 @@ public: virtual void RegisterPrintCallback(FPrintCallback pfnPrintCallback, void *pUserData) = 0; virtual void Print(int Level, const char *pFrom, const char *pStr) = 0; + + virtual void SetAccessLevel(int AccessLevel) = 0; }; extern IConsole *CreateConsole(int FlagMask); -- cgit 1.4.1