summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-27 17:56:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-27 17:56:43 +0300
commiteee2f72b047262cbb6478c67f2e5293a85ce79e4 (patch)
treea5924ee55bd5570825dccd0a344dd9f986157e12 /src/commands.cpp
parente068a57abf67381e4f58f90e40af3be6b386e240 (diff)
downloadplus-eee2f72b047262cbb6478c67f2e5293a85ce79e4.tar.gz
plus-eee2f72b047262cbb6478c67f2e5293a85ce79e4.tar.bz2
plus-eee2f72b047262cbb6478c67f2e5293a85ce79e4.tar.xz
plus-eee2f72b047262cbb6478c67f2e5293a85ce79e4.zip
allow to owner talk from own pet.
New chat command: /talkpet text
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 75347a9aa..8b25984b5 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1252,6 +1252,15 @@ impHandler1(talkRaw)
Net::getChatHandler()->talkRaw(args);
}
+impHandler1(talkPet)
+{
+ // in future probably need add channel detection
+ if (player_node->getPet())
+ Net::getChatHandler()->talkPet(args, GENERAL_CHANNEL);
+ else
+ Net::getChatHandler()->talk(args, GENERAL_CHANNEL);
+}
+
impHandler0(testsdlfont)
{
#if defined USE_OPENGL && defined DEBUG_SDLFONT