summaryrefslogtreecommitdiff
path: root/src/gui/widgets/channeltab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/channeltab.cpp')
-rw-r--r--src/gui/widgets/channeltab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/channeltab.cpp b/src/gui/widgets/channeltab.cpp
index 074ec6fb..e692ff71 100644
--- a/src/gui/widgets/channeltab.cpp
+++ b/src/gui/widgets/channeltab.cpp
@@ -108,14 +108,14 @@ bool ChannelTab::handleCommand(const std::string &type,
else if (type == "op")
{
// set the user mode 'o' to op a user
- if (args != "")
+ if (!args.empty())
Net::getChatHandler()->setUserMode(mChannel->getId(), args, 'o');
else
chatLog(_("Need a user to op!"), BY_CHANNEL);
}
else if (type == "kick")
{
- if (args != "")
+ if (!args.empty())
Net::getChatHandler()->kickUser(mChannel->getId(), args);
else
chatLog(_("Need a user to kick!"), BY_CHANNEL);