From 0276e5138a8f886fe709ffed534aaf5ff826b5be Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 May 2008 17:51:36 +0000 Subject: 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 --- include/u_listmode.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') 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)) -- cgit v1.2.3