]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Migrate u_listmode.h into the core, change +b to use it
[user/henk/code/inspircd.git] / include / channels.h
index 3a6b3864036ceef4e59db165ca3f7525f9be8d57..43302552eb54d96ff85176019154d3555184afa0 100644 (file)
 /** Holds an entry for a ban list, exemption list, or invite list.
  * This class contains a single element in a channel list, such as a banlist.
  */
-class HostItem
-{
- public:
-       /** Time the item was added
-        */
-       time_t set_time;
-       /** Who added the item
-        */
-       std::string set_by;
-       /** The actual item data
-        */
-       std::string data;
-
-       HostItem() { /* stub */ }
-       virtual ~HostItem() { /* stub */ }
-};
-
-/** A subclass of HostItem designed to hold channel bans (+b)
- */
-class BanItem : public HostItem
-{
-};
 
 /** Holds all relevent information for a channel.
  * This class represents a channel, and contains its name, modes, topic, topic set time,
@@ -66,10 +44,6 @@ class CoreExport Channel : public Extensible, public InviteBase
         */
        void SetDefaultModes();
 
-       /** Maximum number of bans (cached)
-        */
-       int maxbans;
-
        /** Modes for the channel.
         * This is not a null terminated string! It is a bitset where
         * each item in it represents if a mode is set. For example
@@ -116,10 +90,6 @@ class CoreExport Channel : public Extensible, public InviteBase
         */
        std::string setby; /* 128 */
 
-       /** The list of all bans set on the channel.
-        */
-       BanList bans;
-
        /** Sets or unsets a custom mode in the channels info
         * @param mode The mode character to set or unset
         * @param value True if you want to set the mode or false if you want to remove it
@@ -301,11 +271,6 @@ class CoreExport Channel : public Extensible, public InviteBase
        /** Write a line of text that already includes the source */
        void RawWriteAllExcept(User* user, bool serversource, char status, CUList &except_list, const std::string& text);
 
-       /** Returns the maximum number of bans allowed to be set on this channel
-        * @return The maximum number of bans allowed
-        */
-       long GetMaxBans();
-
        /** Return the channel's modes with parameters.
         * @param showkey If this is set to true, the actual key is shown,
         * otherwise it is replaced with '<KEY>'
@@ -388,10 +353,6 @@ class CoreExport Channel : public Extensible, public InviteBase
        /** Get the status of an "action" type extban
         */
        ModResult GetExtBanStatus(User *u, char type);
-
-       /** Clears the cached max bans value
-        */
-       void ResetMaxBans();
 };
 
 #endif