From ea4cfda4712ac31326b64ddf9dff61e448aeed28 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 31 Mar 2009 23:02:12 -0600 Subject: Implement a few more handlers for eAthena Party, skill, and trade handlers made for eAthena. --- src/gui/partywindow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/partywindow.cpp') diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp index d2fd7173..fde39179 100644 --- a/src/gui/partywindow.cpp +++ b/src/gui/partywindow.cpp @@ -23,10 +23,11 @@ #include "gui/widgets/chattab.h" +#include "net/net.h" #ifdef TMWSERV_SUPPORT #include "net/tmwserv/chatserver/party.h" #else -#include "net/ea/party.h" +#include "net/ea/partyhandler.h" #endif #include "utils/gettext.h" @@ -171,20 +172,22 @@ void PartyWindow::action(const gcn::ActionEvent &event) if (eventId == "yes") { localChatTab->chatLog("Accepted invite from " + mPartyInviter); + // Net::getPartyHandler()->inviteResponse(true); #ifdef TMWSERV_SUPPORT Net::ChatServer::Party::acceptInvite(mPartyInviter); #else - eAthena::Party::respondToInvite(true); + partyHandler->inviteResponse(true); #endif mPartyInviter = ""; } else if (eventId == "no") { localChatTab->chatLog("Rejected invite from " + mPartyInviter); + // Net::getPartyHandler()->inviteResponse(false); #ifdef TMWSERV_SUPPORT // TODO #else - eAthena::Party::respondToInvite(false); + partyHandler->inviteResponse(false); #endif mPartyInviter = ""; } -- cgit v1.2.3-70-g09d2