summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-24 13:12:40 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-24 13:12:40 +0100
commit8537a54950a3767e54c0119a819e1ba8f8bced9e (patch)
treec4e743c03ca8b465b306794e8049b37aa48a8871
parent5c3abeda44cf085ee0ccd36c9779eab6c8c24e61 (diff)
Remove classbase inheritance from Invitation
-rw-r--r--include/membership.h2
-rw-r--r--src/channels.cpp2
-rw-r--r--src/users.cpp1
3 files changed, 1 insertions, 4 deletions
diff --git a/include/membership.h b/include/membership.h
index b0924bef7..723449419 100644
--- a/include/membership.h
+++ b/include/membership.h
@@ -56,7 +56,7 @@ class CoreExport InviteBase
friend class Invitation;
};
-class CoreExport Invitation : public classbase
+class CoreExport Invitation
{
Invitation(Channel* c, LocalUser* u, time_t timeout) : user(u), chan(c), expiry(timeout) {}
diff --git a/src/channels.cpp b/src/channels.cpp
index 7763febd5..51a8f5625 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -853,7 +853,6 @@ Invitation* Invitation::Find(Channel* c, LocalUser* u, bool check_expired)
std::string expiration = InspIRCd::TimeString(inv->expiry);
ServerInstance->Logs->Log("INVITATION", LOG_DEBUG, "Invitation::Find ecountered expired entry: %p expired %s", (void*) inv, expiration.c_str());
i = locallist.erase(i);
- inv->cull();
delete inv;
}
else
@@ -891,7 +890,6 @@ void InviteBase::ClearInvites()
locallist.swap(invites);
for (InviteList::const_iterator i = locallist.begin(); i != locallist.end(); ++i)
{
- (*i)->cull();
delete *i;
}
}
diff --git a/src/users.cpp b/src/users.cpp
index 6ec46883f..32ae87389 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -156,7 +156,6 @@ bool LocalUser::RemoveInvite(Channel* chan)
Invitation* inv = Invitation::Find(chan, this);
if (inv)
{
- inv->cull();
delete inv;
return true;
}