summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 08:11:35 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 08:12:31 -0600
commit657afb7b642d5b02289c6bb5bc883c2987cdf5d1 (patch)
tree26816e7e3f3acfd521844be85423a8b18d2443c5 /src/commandhandler.cpp
parentb4d5e2a9c92fe5b0f53c3d08b87c324960c3215c (diff)
downloadmana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.gz
mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.bz2
mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.xz
mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.zip
Remove methods from LocalPlayer that just call Net
And make a few others like that, and remove them too.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 6265f350..462cb3b9 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -34,6 +34,7 @@
#include "net/chathandler.h"
#include "net/maphandler.h"
#include "net/net.h"
+#include "net/partyhandler.h"
#include "utils/gettext.h"
#include "utils/stringutils.h"
@@ -369,7 +370,7 @@ void CommandHandler::handleListChannels(const std::string &args, ChatTab *tab)
void CommandHandler::handleParty(const std::string &args, ChatTab *tab)
{
if (args != "")
- player_node->inviteToParty(args);
+ Net::getPartyHandler()->invite(args);
else
tab->chatLog("Please specify a name.", BY_SERVER);
}