summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_helpop.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 492718367..f82004f16 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -63,8 +63,9 @@ class cmd_helpop : public command_t
CmdResult Handle (const char** parameters, int pcnt, userrec *user)
{
+ irc::string parameter;
if (pcnt > 0)
- irc::string parameter = parameters[0];
+ parameter = parameters[0];
if (pcnt == 0 || parameter == "index")
{