summaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 19:53:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 19:53:03 +0000
commit869bd02318d94a38369a125726b8edeb54ba0706 (patch)
treef56397934a1077011633291e6d73d75086781ec9 /src/modules/m_timedbans.cpp
parent12427e75fe175fe7a62f388281dd7ab5100c9dda (diff)
Convert channel banlist members to std::string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9769 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index d69533846..13f9301d2 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -55,7 +55,7 @@ class CommandTban : public Command
}
for (BanList::iterator i = channel->bans.begin(); i != channel->bans.end(); i++)
{
- if (!strcasecmp(i->data,parameters[2].c_str()))
+ if (!strcasecmp(i->data.c_str(), parameters[2].c_str()))
{
user->WriteServ("NOTICE "+std::string(user->nick)+" :The ban "+parameters[2]+" is already on the banlist of "+parameters[0]);
return CMD_FAILURE;
@@ -81,7 +81,7 @@ class CommandTban : public Command
/* Check if the ban was actually added (e.g. banlist was NOT full) */
bool was_added = false;
for (BanList::iterator i = channel->bans.begin(); i != channel->bans.end(); i++)
- if (!strcasecmp(i->data,mask.c_str()))
+ if (!strcasecmp(i->data.c_str(), mask.c_str()))
was_added = true;
if (was_added)
{