summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-10-08 14:46:27 -0400
committerAdam <Adam@anope.org>2017-10-08 14:46:27 -0400
commit6d79b0944026c8a8bb28ab47a53d70fb423f5aac (patch)
tree1d73fd78920c2e8a1ca2ea66736edc1628da5ac7 /src
parenteb1976d11ea56bfac045c0eb92e7daae8a688c28 (diff)
Fix deleting xlines
Diffstat (limited to 'src')
-rw-r--r--src/xline.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index baaca5976..02afa597e 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -100,6 +100,15 @@ XLine::~XLine()
delete c;
}
+void XLine::Delete()
+{
+ XLineManager *manager = GetManager();
+ if (manager)
+ manager->SendDel(this);
+
+ return Serialize::Object::Delete();
+}
+
void XLine::SetType(const Anope::string &t)
{
Set(&XLineType::type, t);
@@ -200,8 +209,8 @@ Anope::string XLine::GetReasonWithID()
bool XLine::IsExpired()
{
- time_t expires = GetExpires();
- return expires > 0 && expires <= Anope::CurTime;
+ time_t exp = GetExpires();
+ return exp > 0 && exp <= Anope::CurTime;
}
bool XLine::HasNickOrReal() const