diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-29 02:43:16 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-29 02:43:16 +0000 |
commit | d2a71fd3447c8bac65cc26077e2b9fc3fb0b28a7 (patch) | |
tree | 648fcf8fa6ca20ab599d618fd33433a761639d98 /src/modules/m_redirect.cpp | |
parent | 1064b6732975ad32ac32147974a3af2d888a7e12 (diff) |
Overloading SetMode seems to cause the compiler to interpret "" as a bool and not a string. Fixes bug #849
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11335 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_redirect.cpp')
-rw-r--r-- | src/modules/m_redirect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp index 00c191d26..8e66060b8 100644 --- a/src/modules/m_redirect.cpp +++ b/src/modules/m_redirect.cpp @@ -68,14 +68,14 @@ class Redirect : public ModeHandler * We used to do some checking for circular +L here, but there is no real need for this any more especially as we * now catch +L looping in PreJoin. Remove it, since O(n) logic makes me sad, and we catch it anyway. :) -- w00t */ - channel->SetMode('L', parameter); + channel->SetModeParam('L', parameter); return MODEACTION_ALLOW; } else { if (channel->IsModeSet('L')) { - channel->SetMode('L', ""); + channel->SetModeParam('L', ""); return MODEACTION_ALLOW; } } |