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/commands/cmd_loadmodule.cpp | |
parent | f4d8359382153309e67a6b344ae503c321653c81 (diff) |
Remove unnecessary string copies and dead code
Diffstat (limited to 'src/commands/cmd_loadmodule.cpp')
-rw-r--r-- | src/commands/cmd_loadmodule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_loadmodule.cpp b/src/commands/cmd_loadmodule.cpp index 9d60613a2..379e597e4 100644 --- a/src/commands/cmd_loadmodule.cpp +++ b/src/commands/cmd_loadmodule.cpp @@ -44,7 +44,7 @@ class CommandLoadmodule : public Command */ CmdResult CommandLoadmodule::Handle (const std::vector<std::string>& parameters, User *user) { - if (ServerInstance->Modules->Load(parameters[0].c_str())) + if (ServerInstance->Modules->Load(parameters[0])) { ServerInstance->SNO->WriteGlobalSno('a', "NEW MODULE: %s loaded %s",user->nick.c_str(), parameters[0].c_str()); user->WriteNumeric(975, "%s %s :Module successfully loaded.",user->nick.c_str(), parameters[0].c_str()); |