summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 5eacbab01..e14b40cfc 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -3407,18 +3407,22 @@ void PopupMenu::addSocialMenu()
// TRANSLATORS: create party
mBrowserBox->addRow("/createparty", _("Create party"));
}
- const Guild *const guild = localPlayer->getGuild();
- if (guild)
- {
- // TRANSLATORS: popup menu item
- // TRANSLATORS: leave guild
- mBrowserBox->addRow("/leaveguild", _("Leave guild"));
- }
- else
+
+ if (serverFeatures->haveNativeGuilds())
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: create guild
- mBrowserBox->addRow("/createguild", _("Create guild"));
+ const Guild *const guild = localPlayer->getGuild();
+ if (guild)
+ {
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: leave guild
+ mBrowserBox->addRow("/leaveguild", _("Leave guild"));
+ }
+ else
+ {
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: create guild
+ mBrowserBox->addRow("/createguild", _("Create guild"));
+ }
}
mBrowserBox->addRow("##3---");
}