diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-23 20:20:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-23 20:20:41 +0000 |
commit | 8b864c8a828d6ca97b5ec15fa7bf8fcc35027294 (patch) | |
tree | 2aad4b5f18e3746bebd062496d906d44741d067f /include/channels.h | |
parent | 985169b6ee6d6af8c24f4e2aee95d15b38f2401d (diff) |
Mode handlers handling listmodes where a listmode item is a nickname can now specify prefixes!!!!!!
This isnt documented yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4997 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/channels.h')
-rw-r--r-- | include/channels.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/channels.h b/include/channels.h index 8f3b8ba3d..5186822e1 100644 --- a/include/channels.h +++ b/include/channels.h @@ -144,6 +144,9 @@ class ucrec : public classbase class InspIRCd; +typedef std::pair<char, unsigned int> prefixtype; +typedef std::vector<prefixtype> pfxcontainer; +typedef std::map<userrec*, std::vector<prefixtype> > prefixlist; /** Holds all relevent information for a channel. * This class represents a channel, and contains its name, modes, time created, topic, topic set time, @@ -161,6 +164,8 @@ class chanrec : public Extensible */ static chanrec* ForceChan(InspIRCd* Instance, chanrec* Ptr,ucrec *a,userrec* user, int created); + prefixlist prefixes; + public: /** The channels name. */ @@ -468,6 +473,8 @@ class chanrec : public Extensible */ const char* GetStatusChar(userrec *user); + void SetPrefix(userrec* user, char prefix, unsigned int prefix_rank, bool adding); + /** Destructor for chanrec */ virtual ~chanrec() { /* stub */ } |