From 3f72ca011ca25f0c7fab559169ac77b92173ffec Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 13 Sep 2012 20:32:39 +0200 Subject: m_blockamsg, m_sslinfo Don't convert the command name to irc::string in OnPreCommand() See 44e89aafb69fb266bdf780d12a31947bfff4e330 --- src/modules/m_sslinfo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_sslinfo.cpp') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 22be27383..33a36d3b4 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -174,9 +174,7 @@ class ModuleSSLInfo : public Module ModResult OnPreCommand(std::string &command, std::vector ¶meters, LocalUser *user, bool validated, const std::string &original_line) { - irc::string pcmd = command.c_str(); - - if ((pcmd == "OPER") && (validated)) + if ((command == "OPER") && (validated)) { OperIndex::iterator i = ServerInstance->Config->oper_blocks.find(parameters[0]); if (i != ServerInstance->Config->oper_blocks.end()) -- cgit v1.2.3