/* +------------------------------------+ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. * * --------------------------------------------------- */ #ifndef __MEMBERSHIP_H__ #define __MEMBERSHIP_H__ class CoreExport Membership : public Extensible { public: User* const user; Channel* const chan; // mode list, sorted by prefix rank, higest first std::string modes; Membership(User* u, Channel* c) : user(u), chan(c) {} inline bool hasMode(char m) const { return modes.find(m) != std::string::npos; } unsigned int getRank(); }; #endif