summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-18 17:51:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-18 17:51:36 +0000
commit0276e5138a8f886fe709ffed534aaf5ff826b5be (patch)
treee4bcaf9f66bb07b11e0eac4c3b7584b331577048 /include
parent1fc43c1cab6a02df61955dc48dbf6bef3c586c4f (diff)
Remove .c_str()'s in match() calls that are no longer needed as match() natively takes std::strings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9737 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/u_listmode.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h
index 5c5ddd9ff..19e9bf834 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -31,7 +31,7 @@ class ListItem : public classbase
{
public:
std::string nick;
- irc::string mask;
+ std::string mask;
std::string time;
};
@@ -182,9 +182,9 @@ class ListModeBase : public ModeHandler
for (modelist::iterator it = el->begin(); it != el->end(); it++)
{
if (stack)
- stack->Push(this->GetModeChar(), assign(it->mask));
+ stack->Push(this->GetModeChar(), it->mask);
else
- modestack.Push(this->GetModeChar(), assign(it->mask));
+ modestack.Push(this->GetModeChar(), it->mask);
}
if (stack)
@@ -284,7 +284,7 @@ class ListModeBase : public ModeHandler
for (limitlist::iterator it = chanlimits.begin(); it != chanlimits.end(); it++)
{
- if (match(channel->name, it->mask.c_str()))
+ if (match(channel->name, it->mask))
{
// We have a pattern matching the channel...
maxsize = el->size();
@@ -304,7 +304,7 @@ class ListModeBase : public ModeHandler
{
// And now add the mask onto the list...
ListItem e;
- e.mask = assign(parameter);
+ e.mask = parameter;
e.nick = servermode ? ServerInstance->Config->ServerName : source->nick;
e.time = stringtime();
@@ -402,7 +402,7 @@ class ListModeBase : public ModeHandler
{
for (modelist::iterator it = mlist->begin(); it != mlist->end(); it++)
{
- modestack.Push(std::string(1, mode)[0], assign(it->mask));
+ modestack.Push(std::string(1, mode)[0], it->mask);
}
}
while (modestack.GetStackedLine(stackresult))