Skip to content

Commit

Permalink
Fix w00ts compile error :p (if you do an if without braces, vars decl…
Browse files Browse the repository at this point in the history
…ared within that if are in fact local :p)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6464 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
braindigitalis committed Jan 30, 2007
1 parent a77e32f commit e734675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/m_helpop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand Down

0 comments on commit e734675

Please sign in to comment.