summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-29 14:51:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-29 14:51:02 +0300
commitd08e40706207d56cdeee73cab17f2ea61ab1082c (patch)
tree4caa8862828d2c6dee2df1aa6fff8d2d92eea275 /src/gui/widgets
parent32bf758a1267689cac65e10f69c73b8efa40bb94 (diff)
downloadManaVerse-d08e40706207d56cdeee73cab17f2ea61ab1082c.tar.gz
ManaVerse-d08e40706207d56cdeee73cab17f2ea61ab1082c.tar.bz2
ManaVerse-d08e40706207d56cdeee73cab17f2ea61ab1082c.tar.xz
ManaVerse-d08e40706207d56cdeee73cab17f2ea61ab1082c.zip
Remove unused guildid parameter from guild handler.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabs/chat/guildtab.cpp5
-rw-r--r--src/gui/widgets/tabs/socialguildtab.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/chat/guildtab.cpp b/src/gui/widgets/tabs/chat/guildtab.cpp
index 0b220594a..512104fd5 100644
--- a/src/gui/widgets/tabs/chat/guildtab.cpp
+++ b/src/gui/widgets/tabs/chat/guildtab.cpp
@@ -68,7 +68,7 @@ bool GuildTab::handleCommand(const std::string &restrict type,
*/
if (type == "invite" && Ea::taGuild)
{
- guildHandler->invite(Ea::taGuild->getId(), args);
+ guildHandler->invite(args);
}
else if (type == "leave" && Ea::taGuild)
{
@@ -99,8 +99,7 @@ void GuildTab::handleInput(const std::string &msg)
if (!Ea::taGuild)
return;
- guildHandler->chat(Ea::taGuild->getId(),
- ChatWindow::doReplace(msg));
+ guildHandler->chat(ChatWindow::doReplace(msg));
}
void GuildTab::getAutoCompleteList(StringVect &names) const
diff --git a/src/gui/widgets/tabs/socialguildtab.h b/src/gui/widgets/tabs/socialguildtab.h
index 88354bb50..8f09f7bde 100644
--- a/src/gui/widgets/tabs/socialguildtab.h
+++ b/src/gui/widgets/tabs/socialguildtab.h
@@ -74,7 +74,7 @@ class SocialGuildTab final : public SocialTab,
if (eventId == "do invite")
{
const std::string name = mInviteDialog->getText();
- guildHandler->invite(mGuild->getId(), name);
+ guildHandler->invite(name);
if (localChatTab)
{