diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-30 02:07:17 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-30 02:07:17 +0000 |
| commit | 4fd169b1841c41cfae85b705a92289980af0cbb1 (patch) | |
| tree | 62d8467ba7f9b738cbe181e771716e0ee0729e94 /include | |
| parent | 7665af27cd8317bd4fc017d78e3d1b89d6b0a823 (diff) | |
Added in support for permanet channel modes on non-registered channels
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2720 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/services.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/include/services.h b/include/services.h index a3dabaaf5..2354261cb 100644 --- a/include/services.h +++ b/include/services.h @@ -783,15 +783,21 @@ struct c_userlist { UserData *ud; }; -class CoreExport Channel : public Extensible +enum ChannelFlags { - private: - /** A map of channel modes with their parameters set on this channel - */ - std::map<ChannelModeName, std::string> Params; + /* Channel still exists when emptied */ + CH_PERSIST +}; - public: - /** Default constructor +class CoreExport Channel : public Extensible, public Flags<ChannelFlags> +{ + private: + /** A map of channel modes with their parameters set on this channel + */ + std::map<ChannelModeName, std::string> Params; + + public: + /** Default constructor * @param name The channel name * @param ts The time the channel was created */ |
