summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-08-23 19:37:03 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-08-23 19:37:03 +0200
commitbcdc3b0bb0ba957a9e99cd6db7f1242a9e587400 (patch)
treefe0c0962384f5f8aa83658fd5897aa13e29ce22e /src/xline.cpp
parent2df0de3c9212f7ea74fcb9a0ccf20990e47e9f2e (diff)
parent0aa6c4134011006e6166c72d9c3162b054c01bbe (diff)
Merge branch 'master+ircstring'
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 30a1d7c9c..b116d2e1f 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -259,7 +259,7 @@ bool XLineManager::AddLine(XLine* line, User* user)
ContainerIter x = lookup_lines.find(line->type);
if (x != lookup_lines.end())
{
- LookupIter i = x->second.find(line->Displayable().c_str());
+ LookupIter i = x->second.find(line->Displayable());
if (i != x->second.end())
{
// XLine propagation bug was here, if the line to be added already exists and
@@ -281,7 +281,7 @@ bool XLineManager::AddLine(XLine* line, User* user)
if (xlf->AutoApplyToUserList(line))
pending_lines.push_back(line);
- lookup_lines[line->type][line->Displayable().c_str()] = line;
+ lookup_lines[line->type][line->Displayable()] = line;
line->OnAdd();
FOREACH_MOD(OnAddLine, (user, line));