diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-30 21:09:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-30 21:09:47 +0000 |
commit | e734675c7292a6cfe43dbc6cdde1a23b6043d7f5 (patch) | |
tree | b23f00cd6692347b0745431a74fd4f434419897f /src | |
parent | a77e32fa3267f022b4b0dd973c9b937534da9a5d (diff) |
Fix w00ts compile error :p (if you do an if without braces, vars declared within that if are in fact local :p)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6464 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_helpop.cpp | 3 |
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") { |