[6982] Implemented gmlevel-based command security
commitc000d23049ada9abad6a4dbc4fe037bea0045554
authorfreghar <compmancz@gmail.com>
Tue, 9 Dec 2008 14:04:56 +0000 (9 15:04 +0100)
committerfreghar <compmancz@gmail.com>
Mon, 29 Dec 2008 22:54:05 +0000 (29 23:54 +0100)
treec8db4642b4e75a0f16c1355aad77c4d160bffea8
parent3d00e182cac90559be9a4aae9446ca1fca606895
[6982] Implemented gmlevel-based command security

This is just a simple check if target's gmlevel is lesser
than the caller's one. If it is, an error is returned.
Offline checks for some commands are included.

That in simple words means no further .goname to a gmlevel 3 player
from a gmlevel 2 or 1 account, so gmlevel 3 can work in peace.

Signed-off-by: freghar <compmancz@gmail.com>
src/game/Chat.cpp
src/game/Chat.h
src/game/Level1.cpp
src/game/Level2.cpp
src/game/World.cpp
src/game/World.h
src/mangosd/mangosd.conf.dist.in
src/shared/revision_nr.h