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/modules/m_dccallow.cpp | |
parent | f4d8359382153309e67a6b344ae503c321653c81 (diff) |
Remove unnecessary string copies and dead code
Diffstat (limited to 'src/modules/m_dccallow.cpp')
-rw-r--r-- | src/modules/m_dccallow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 712dd91b8..de7b6b7bf 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -166,7 +166,7 @@ class CommandDccallow : public Command length = ServerInstance->Duration(parameters[1]); } - if (!ServerInstance->IsValidMask(mask.c_str())) + if (!ServerInstance->IsValidMask(mask)) { return CMD_FAILURE; } |