inspircd/include/membership.h

33 lines
797 B
C
Raw Normal View History

/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
2012-04-14 18:03:25 -07:00
#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