X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmembership.h;h=11c142912ee60e6612980416c924bb514d08809c;hb=66221de4b6cca64692c84eabfe0b81cabdbd00bc;hp=71008e46b5b1b2c2632e2ccb263ffa82af038a4e;hpb=f62654a6859998f9d63eb22702c572d5ebcff15c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/membership.h b/include/membership.h index 71008e46b..11c142912 100644 --- a/include/membership.h +++ b/include/membership.h @@ -29,7 +29,7 @@ uint64_t ConvToUInt64(const std::string& in); * All prefix modes a member has is tracked by this object. Moreover, Memberships are Extensibles * meaning modules can add arbitrary data to them using extensions (see m_delaymsg for an example). */ -class CoreExport Membership : public Extensible, public intrusive_list_node +class CoreExport Membership : public Extensible, public insp::intrusive_list_node { public: /** Type of the Membership id @@ -119,7 +119,7 @@ class InviteBase protected: /** List of pending Invitations */ - intrusive_list invites; + insp::intrusive_list invites; public: /** Remove and destruct all pending invitations this user or channel has. @@ -134,7 +134,7 @@ class InviteBase * The Invitation class contains all data about a pending invitation. * Invitation objects are referenced from the user and the channel they belong to. */ -class CoreExport Invitation : public intrusive_list_node, public intrusive_list_node +class CoreExport Invitation : public insp::intrusive_list_node, public insp::intrusive_list_node { /** Constructs an Invitation, only called by Create() * @param c Channel the user is invited to @@ -182,12 +182,12 @@ class CoreExport Invitation : public intrusive_list_node, p static Invitation* Find(Channel* c, LocalUser* u, bool check_expired = true); }; -typedef intrusive_list InviteList; +typedef insp::intrusive_list InviteList; template inline void InviteBase::ClearInvites() { - for (typename intrusive_list::iterator i = invites.begin(); i != invites.end(); ) + for (typename insp::intrusive_list::iterator i = invites.begin(); i != invites.end(); ) { Invitation* inv = *i; // Destructing the Invitation invalidates the iterator, so move it now