summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 00:34:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 00:34:50 +0300
commit6e99f459bf4895e41118dbcf00ed3ba027b5b952 (patch)
treebfec435226b3f51509449a2fa7c606be9f2f2f65 /src/actions
parent369dccecf7540c8ea3c050116c2fde5914e75a40 (diff)
downloadmanaplus-6e99f459bf4895e41118dbcf00ed3ba027b5b952.tar.gz
manaplus-6e99f459bf4895e41118dbcf00ed3ba027b5b952.tar.bz2
manaplus-6e99f459bf4895e41118dbcf00ed3ba027b5b952.tar.xz
manaplus-6e99f459bf4895e41118dbcf00ed3ba027b5b952.zip
Move chat command /pseudoaway into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp11
-rw-r--r--src/actions/commands.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 84e093a40..e32aee7a3 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -357,4 +357,15 @@ impHandler(awayMessage)
return false;
}
+impHandler(pseudoAway)
+{
+ if (localPlayer)
+ {
+ localPlayer->setPseudoAway(event.args);
+ localPlayer->updateStatus();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 961029002..8f6813210 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -44,6 +44,7 @@ namespace Actions
decHandler(commandEmote);
decHandler(commandEmotePet);
decHandler(awayMessage);
+ decHandler(pseudoAway);
} // namespace Actions
#undef decHandler