summaryrefslogtreecommitdiff
path: root/include/u_listmode.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-10 15:29:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-10 15:29:47 +0000
commit07ca4f5789bb54f9bfe0e24e68c5515d9708d9ee (patch)
tree04304828cac45c3e7531196784687e4f38100c8d /include/u_listmode.h
parent902f5b36810fa8d367dacb6895f79d58afd619a1 (diff)
Fix the operator== for irc::string -> std::string to be const&, the lack of const was stopping them being used in certain situations, this saves us a bunch of assign()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6643 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/u_listmode.h')
-rw-r--r--include/u_listmode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h
index d5770d9b7..ce720f926 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -102,12 +102,11 @@ class ListModeBase : public ModeHandler
{
modelist* el;
channel->GetExt(infokey, el);
- irc::string csp(assign(parameter));
if (el)
{
for (modelist::iterator it = el->begin(); it != el->end(); it++)
{
- if(csp == it->mask)
+ if(parameter == it->mask)
{
return std::make_pair(true, parameter);
}