summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-24 22:03:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-25 10:45:54 +0300
commit67f8b40f80368dad17a9da50c78923433e266f54 (patch)
tree4667906e1ab807c31216f89da450b3cce5585150 /src/actions/commands.cpp
parent286f34b97b8a4fb56fde1f9e5f3a95ba0c807441 (diff)
downloadmv-67f8b40f80368dad17a9da50c78923433e266f54.tar.gz
mv-67f8b40f80368dad17a9da50c78923433e266f54.tar.bz2
mv-67f8b40f80368dad17a9da50c78923433e266f54.tar.xz
mv-67f8b40f80368dad17a9da50c78923433e266f54.zip
Fix code style.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index d187f8f6c..d3c79c10f 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -410,17 +410,11 @@ impHandler(info)
return false;
}
- switch (event.tab->getType())
+ if (event.tab->getType() == ChatTabType::GUILD)
{
- case ChatTabType::GUILD:
- {
- const Guild *const guild = localPlayer->getGuild();
- if (guild)
- guildHandler->info(guild->getId());
- break;
- }
- default:
- break;
+ const Guild *const guild = localPlayer->getGuild();
+ if (guild)
+ guildHandler->info(guild->getId());
}
return true;
}