summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-10 15:16:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-10 15:16:27 +0000
commit902f5b36810fa8d367dacb6895f79d58afd619a1 (patch)
tree26197dfb41f9bcbfd3d71a5dbc736704f4de8185 /include
parent166dfe4163f0941148f5927c28dfbdb8bdb49c5e (diff)
Change mask variable to irc::string to allow for case insensitive removal/addition
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6642 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/u_listmode.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h
index 28c364698..d5770d9b7 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -45,7 +45,7 @@ class ListItem : public classbase
{
public:
std::string nick;
- std::string mask;
+ irc::string mask;
std::string time;
};
@@ -102,11 +102,12 @@ 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(parameter == it->mask)
+ if(csp == it->mask)
{
return std::make_pair(true, parameter);
}
@@ -145,7 +146,7 @@ class ListModeBase : public ModeHandler
n->SetFd(FD_MAGIC_NUMBER);
for(modelist::iterator it = el->begin(); it != el->end(); it++)
{
- modestack.Push(this->GetModeChar(), it->mask);
+ modestack.Push(this->GetModeChar(), assign(it->mask));
}
while (modestack.GetStackedLine(stackresult))
{
@@ -252,7 +253,7 @@ class ListModeBase : public ModeHandler
{
// And now add the mask onto the list...
ListItem e;
- e.mask = parameter;
+ e.mask = assign(parameter);
e.nick = source->nick;
e.time = stringtime();
@@ -338,7 +339,7 @@ class ListModeBase : public ModeHandler
{
for (modelist::iterator it = list->begin(); it != list->end(); it++)
{
- modestack.Push(std::string(1, mode)[0], it->mask);
+ modestack.Push(std::string(1, mode)[0], assign(it->mask));
}
}
while (modestack.GetStackedLine(stackresult))