diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 23:02:12 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 23:02:12 -0600 |
commit | ea4cfda4712ac31326b64ddf9dff61e448aeed28 (patch) | |
tree | 2bff17828862ebed77d44e65729a2d2944602ba9 /src/gui/partywindow.cpp | |
parent | 78e67de6f70aab502a85578264b60493a818b39f (diff) | |
download | mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.gz mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.bz2 mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.xz mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.zip |
Implement a few more handlers for eAthena
Party, skill, and trade handlers made for eAthena.
Diffstat (limited to 'src/gui/partywindow.cpp')
-rw-r--r-- | src/gui/partywindow.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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 = ""; } |