diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-05 23:11:50 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-05 23:11:50 +0200 |
commit | d87bfc277858543ff14cd43f4222c66362464094 (patch) | |
tree | ecc4252e97d07bdf935b9af751087d5b6abc435c /src/modes/umode_o.cpp | |
parent | f4d8359382153309e67a6b344ae503c321653c81 (diff) |
Remove unnecessary string copies and dead code
Diffstat (limited to 'src/modes/umode_o.cpp')
-rw-r--r-- | src/modes/umode_o.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes/umode_o.cpp b/src/modes/umode_o.cpp index 5fb62571d..a5f590ba0 100644 --- a/src/modes/umode_o.cpp +++ b/src/modes/umode_o.cpp @@ -32,7 +32,7 @@ ModeUserOperator::ModeUserOperator() : ModeHandler(NULL, "oper", 'o', PARAM_NONE ModeAction ModeUserOperator::OnModeChange(User* source, User* dest, Channel*, std::string&, bool adding) { /* Only opers can execute this class at all */ - if (!ServerInstance->ULine(source->nick.c_str()) && !ServerInstance->ULine(source->server) && !IS_OPER(source)) + if (!ServerInstance->ULine(source->server) && !IS_OPER(source)) return MODEACTION_DENY; /* Not even opers can GIVE the +o mode, only take it away */ |