summaryrefslogtreecommitdiff
path: root/src/modes/cmode_l.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-29 02:43:16 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-29 02:43:16 +0000
commitd2a71fd3447c8bac65cc26077e2b9fc3fb0b28a7 (patch)
tree648fcf8fa6ca20ab599d618fd33433a761639d98 /src/modes/cmode_l.cpp
parent1064b6732975ad32ac32147974a3af2d888a7e12 (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/modes/cmode_l.cpp')
-rw-r--r--src/modes/cmode_l.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/cmode_l.cpp b/src/modes/cmode_l.cpp
index 3d37fc900..f20256e87 100644
--- a/src/modes/cmode_l.cpp
+++ b/src/modes/cmode_l.cpp
@@ -54,7 +54,7 @@ ModeAction ModeChannelLimit::OnModeChange(User*, User*, Channel* channel, std::s
parameter = ConvToStr(limit);
/* Set new limit */
- channel->SetMode('l', parameter);
+ channel->SetModeParam('l', parameter);
return MODEACTION_ALLOW;
}
@@ -70,7 +70,7 @@ ModeAction ModeChannelLimit::OnModeChange(User*, User*, Channel* channel, std::s
}
/* Removing old limit, no checks here */
- channel->SetMode('l', "");
+ channel->SetModeParam('l', "");
return MODEACTION_ALLOW;
}
}