summaryrefslogtreecommitdiff
path: root/src/net/ea/gui/guildtab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 10:50:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 10:50:22 +0300
commit4228763829f71ec4db50ed185483d7707c5e47eb (patch)
tree55e6ae79345b0580b13928162a85d4b7ba2ef664 /src/net/ea/gui/guildtab.cpp
parent38b46ebb02bbe307765aa9a456b587eafd3dfd7e (diff)
downloadplus-4228763829f71ec4db50ed185483d7707c5e47eb.tar.gz
plus-4228763829f71ec4db50ed185483d7707c5e47eb.tar.bz2
plus-4228763829f71ec4db50ed185483d7707c5e47eb.tar.xz
plus-4228763829f71ec4db50ed185483d7707c5e47eb.zip
Remove getter for guildHandler.
Diffstat (limited to 'src/net/ea/gui/guildtab.cpp')
-rw-r--r--src/net/ea/gui/guildtab.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/ea/gui/guildtab.cpp b/src/net/ea/gui/guildtab.cpp
index 43e759e39..996c8fd58 100644
--- a/src/net/ea/gui/guildtab.cpp
+++ b/src/net/ea/gui/guildtab.cpp
@@ -70,20 +70,20 @@ bool GuildTab::handleCommand(const std::string &restrict type,
if (args.empty())
chatLog(_("Guild name is missing."), ChatMsgType::BY_SERVER);
else
- Net::getGuildHandler()->create(args);
+ guildHandler->create(args);
}
*/
if (type == "invite" && taGuild)
{
- Net::getGuildHandler()->invite(taGuild->getId(), args);
+ guildHandler->invite(taGuild->getId(), args);
}
else if (type == "leave" && taGuild)
{
- Net::getGuildHandler()->leave(taGuild->getId());
+ guildHandler->leave(taGuild->getId());
}
else if (type == "kick" && taGuild)
{
- Net::getGuildHandler()->kick(taGuild->getMember(args), "");
+ guildHandler->kick(taGuild->getMember(args), "");
}
else if (type == "notice" && taGuild)
{
@@ -91,7 +91,7 @@ bool GuildTab::handleCommand(const std::string &restrict type,
std::string str2("");
if (args.size() > 60)
str2 = args.substr(60);
- Net::getGuildHandler()->changeNotice(taGuild->getId(), str1, str2);
+ guildHandler->changeNotice(taGuild->getId(), str1, str2);
}
else
{
@@ -106,7 +106,7 @@ void GuildTab::handleInput(const std::string &msg)
if (!taGuild)
return;
- Net::getGuildHandler()->chat(taGuild->getId(),
+ guildHandler->chat(taGuild->getId(),
ChatWindow::doReplace(msg));
}