summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-06 01:30:04 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-06 01:30:04 +0300
commit7a2d595785a61ec874ddc566e0d999495684c2aa (patch)
treec0b6d8b0137e002eb4847d8ead44562264ad1e18 /src/localplayer.cpp
parent2d452dd8faf2529fda01913b0ab26f4a1f22ef3d (diff)
downloadmanaplus-7a2d595785a61ec874ddc566e0d999495684c2aa.tar.gz
manaplus-7a2d595785a61ec874ddc566e0d999495684c2aa.tar.bz2
manaplus-7a2d595785a61ec874ddc566e0d999495684c2aa.tar.xz
manaplus-7a2d595785a61ec874ddc566e0d999495684c2aa.zip
Add gm commands to chat autocomplete list (only for gms)
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index cbf75a5f9..c83082a44 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -397,7 +397,11 @@ void LocalPlayer::setGMLevel(int level)
mGMLevel = level;
if (level > 0)
+ {
setGM(true);
+ if (chatWindow)
+ chatWindow->loadGMCommands();
+ }
}