From e734675c7292a6cfe43dbc6cdde1a23b6043d7f5 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 30 Jan 2007 21:09:47 +0000 Subject: 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 --- src/modules/m_helpop.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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") { -- cgit v1.2.3