aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_dnsbl.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-27 19:03:41 +0000
committerGravatar Sadie Powell2022-12-27 19:29:43 +0000
commit72b5aec5d5a396f1e3fdaa0f36978483eb808b89 (patch)
tree5de2097b5ad93ef1521dc8b4218ac56b05440083 /src/modules/m_dnsbl.cpp
parentAdd the ListExtItem extension type. (diff)
Add the SimpleExtItem::GetRef method.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
-rw-r--r--src/modules/m_dnsbl.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index bfa72d39b..d603e75c6 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -296,13 +296,7 @@ public:
them->ChangeDisplayedHost(ConfEntry->markhost);
}
- MarkExtItem::List* marks = nameExt.Get(them);
- if (!marks)
- {
- marks = new MarkExtItem::List();
- nameExt.Set(them, marks);
- }
- marks->push_back(ConfEntry->name);
+ nameExt.GetRef(them).push_back(ConfEntry->name);
break;
}
case DNSBLEntry::Action::KLINE: