summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 21:27:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 21:27:08 +0300
commitb030143a03ab3d65225f8c2351469b2e8daa0e94 (patch)
treed94c785b3820b3c85990c6164d32c87b29447a24 /src/actions
parent0ae262d137e24c44064f59102ff6b72b19c60b71 (diff)
downloadmanaverse-b030143a03ab3d65225f8c2351469b2e8daa0e94.tar.gz
manaverse-b030143a03ab3d65225f8c2351469b2e8daa0e94.tar.bz2
manaverse-b030143a03ab3d65225f8c2351469b2e8daa0e94.tar.xz
manaverse-b030143a03ab3d65225f8c2351469b2e8daa0e94.zip
Move chat command /present into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp10
-rw-r--r--src/actions/commands.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 1ec9f03c7..103248aa8 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -252,4 +252,14 @@ impHandler(chatEnemy)
return true;
}
+impHandler0(present)
+{
+ if (chatWindow)
+ {
+ chatWindow->doPresent();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index c978cb57b..bd9a7148c 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -36,6 +36,7 @@ namespace Actions
decHandler(chatBlackList);
decHandler(chatEnemy);
decHandler(chatErase);
+ decHandler(present);
} // namespace Actions
#undef decHandler