summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-07 21:16:24 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-07 21:23:27 -0600
commit73c773adfb8b65e1305242ab55607882a46e71c3 (patch)
tree5b6d767ce2f44e33283f4e78edbb5a08f0c2b52a /src/commandhandler.cpp
parentaefbc69aac9f7c793725153eefce2631555bfd1f (diff)
downloadMana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.gz
Mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.bz2
Mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.xz
Mana-73c773adfb8b65e1305242ab55607882a46e71c3.zip
Implement TMWServ's PartyHandler
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 6fc28978..586a62cd 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -156,9 +156,9 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab)
tab->chatLog(_("/clear > Clears this window"));
tab->chatLog(_("/op > Make a user a channel operator"));
tab->chatLog(_("/kick > Kick a user from the channel"));
+#endif
tab->chatLog(_("/party > Invite a user to party"));
-#endif
tab->chatLog(_("/record > Start recording the chat to an external file"));
tab->chatLog(_("/toggle > Determine whether <return> toggles the chat log"));
@@ -230,14 +230,10 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab)
}
else if (args == "party")
{
-#ifdef TMWSERV_SUPPORT
tab->chatLog(_("Command: /party <nick>"));
tab->chatLog(_("This command invites <nick> to party with you."));
tab->chatLog(_("If the <nick> has spaces in it, enclose it in "
"double quotes (\")."));
-#else
- tab->chatLog(_("Party commands are used on the party tab."));
-#endif
}
else if (args == "present")
{
@@ -449,14 +445,10 @@ void CommandHandler::handleKick(const std::string &args, ChatTab *tab)
void CommandHandler::handleParty(const std::string &args, ChatTab *tab)
{
-#ifdef TMWSERV_SUPPORT
if (args != "")
- {
player_node->inviteToParty(args);
- }
-#else
- tab->chatLog(_("Please use party commands on the party tab."));
-#endif
+ else
+ tab->chatLog("Please specify a name.", BY_SERVER);
}
void CommandHandler::handleMe(const std::string &args, ChatTab *tab)