From 0a8b0d317ed4adc43185c1b791bcf752115dc58e Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 16 May 2013 20:33:46 +0200 Subject: Remove unused variables, avoid copies where possible, check empty() instead of size() == 0 Most of these were detected by cppcheck --- src/modules/m_operprefix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_operprefix.cpp') diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index b6e6b893b..25937cd6e 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -51,7 +51,7 @@ class OperPrefixMode : public ModeHandler return MODEACTION_ALLOW; else { - if (source && channel) + if (channel) source->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :Only servers are permitted to change channel mode '%c'", source->nick.c_str(), channel->name.c_str(), 'y'); return MODEACTION_DENY; } -- cgit v1.2.3