From d2a71fd3447c8bac65cc26077e2b9fc3fb0b28a7 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 29 Apr 2009 02:43:16 +0000 Subject: 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 --- src/modules/m_redirect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_redirect.cpp') 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; } } -- cgit v1.2.3