about summary refs log tree commit diff
path: root/src/engine/console.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-05 21:54:10 +0200
committeroy <Tom_Adams@web.de>2011-07-05 21:54:10 +0200
commit1ae474689d564e1feba9924842f05e06600d83a1 (patch)
treebaac3e231cc2a1e1d35ea7d2a8c109e23fd8b8af /src/engine/console.h
parent5008b5f8a52a2692e5396cd67bf3ad13332e074b (diff)
downloadzcatch-1ae474689d564e1feba9924842f05e06600d83a1.tar.gz
zcatch-1ae474689d564e1feba9924842f05e06600d83a1.zip
added moderator support for the remote console. #518
Diffstat (limited to 'src/engine/console.h')
-rw-r--r--src/engine/console.h7
1 files changed, 6 insertions, 1 deletions
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);