diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-02-08 16:20:39 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-02-08 16:20:39 -0700 |
commit | 308302f858d24d2cc1b1601b100324e2baa50765 (patch) | |
tree | bf76a3e5feb37fc700dbb2738f3b8c1c0f0fc655 /src/net/ea/partyhandler.cpp | |
parent | a4007a7f8f253e90bb189cfb22b3e0c798440bdc (diff) | |
download | mana-client-308302f858d24d2cc1b1601b100324e2baa50765.tar.gz mana-client-308302f858d24d2cc1b1601b100324e2baa50765.tar.bz2 mana-client-308302f858d24d2cc1b1601b100324e2baa50765.tar.xz mana-client-308302f858d24d2cc1b1601b100324e2baa50765.zip |
Move party creation command from eA's PartyTab to CommandHandler
Also fix party invite by name when you aren't in a party.
Diffstat (limited to 'src/net/ea/partyhandler.cpp')
-rw-r--r-- | src/net/ea/partyhandler.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 030914b4..ddbe567f 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -320,7 +320,17 @@ void PartyHandler::invite(Player *player) void PartyHandler::invite(const std::string &name) { - partyTab->chatLog(_("Inviting like this isn't supported at the moment."), BY_SERVER); + if (partyTab) + { + partyTab->chatLog(_("Inviting like this isn't supported at the moment."), + BY_SERVER); + } + else + { + localChatTab->chatLog(_("You can only inivte when you are in a party!"), + BY_SERVER); + } + // TODO? } |