diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-07 21:16:24 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-07 21:23:27 -0600 |
commit | 73c773adfb8b65e1305242ab55607882a46e71c3 (patch) | |
tree | 5b6d767ce2f44e33283f4e78edbb5a08f0c2b52a /src/gui/partywindow.cpp | |
parent | aefbc69aac9f7c793725153eefce2631555bfd1f (diff) | |
download | mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.gz mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.bz2 mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.xz mana-73c773adfb8b65e1305242ab55607882a46e71c3.zip |
Implement TMWServ's PartyHandler
Diffstat (limited to 'src/gui/partywindow.cpp')
-rw-r--r-- | src/gui/partywindow.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp index fde39179..aea1388b 100644 --- a/src/gui/partywindow.cpp +++ b/src/gui/partywindow.cpp @@ -24,11 +24,7 @@ #include "gui/widgets/chattab.h" #include "net/net.h" -#ifdef TMWSERV_SUPPORT -#include "net/tmwserv/chatserver/party.h" -#else -#include "net/ea/partyhandler.h" -#endif +#include "net/partyhandler.h" #include "utils/gettext.h" #include "utils/strprintf.h" @@ -172,23 +168,13 @@ 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 - partyHandler->inviteResponse(true); -#endif + Net::getPartyHandler()->inviteResponse(mPartyInviter, true); mPartyInviter = ""; } else if (eventId == "no") { localChatTab->chatLog("Rejected invite from " + mPartyInviter); - // Net::getPartyHandler()->inviteResponse(false); -#ifdef TMWSERV_SUPPORT - // TODO -#else - partyHandler->inviteResponse(false); -#endif + Net::getPartyHandler()->inviteResponse(mPartyInviter, false); mPartyInviter = ""; } } |