aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_operprefix.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-06-06 01:07:22 +0200
committerGravatar attilamolnar2013-06-06 01:07:22 +0200
commitd9d99cd02dadf34bfcc220734ba0c422f0acb3e6 (patch)
tree72a11fab75875b7e4f739ddd203da60e5dcbc851 /src/modules/m_operprefix.cpp
parentRefactor Channel::UserList() to use std::string (diff)
parentRelease 2.0.13 (diff)
Merge insp20
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r--src/modules/m_operprefix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index fbb7e8b50..d061a5eab 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;
}