From 73c773adfb8b65e1305242ab55607882a46e71c3 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 7 Apr 2009 21:16:24 -0600 Subject: Implement TMWServ's PartyHandler --- src/commandhandler.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/commandhandler.cpp') 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 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 ")); tab->chatLog(_("This command invites to party with you.")); tab->chatLog(_("If the 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) -- cgit v1.2.3-60-g2f50