diff options
| author | Adam <Adam@anope.org> | 2011-05-08 19:48:26 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-05-16 04:10:18 -0400 |
| commit | 9962fae1a176d62813d8c83ca77104a2efc60e92 (patch) | |
| tree | 6174b6e37e963a7d4fc479d51411b416aac8dc8d /include | |
| parent | 9fcbe293e2820a92921762d892767e2b1802c9c0 (diff) | |
Calculate nc::channelcount at runtime
Diffstat (limited to 'include')
| -rw-r--r-- | include/regchannel.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/regchannel.h b/include/regchannel.h index 8245b256d..9c3d1c9b9 100644 --- a/include/regchannel.h +++ b/include/regchannel.h @@ -60,7 +60,7 @@ enum ChannelInfoFlag const Anope::string ChannelInfoFlagStrings[] = { "BEGIN", "KEEPTOPIC", "SECUREOPS", "PRIVATE", "TOPICLOCK", "RESTRICTED", - "PEACE", "SECURE", "FORBIDDEN", "NO_EXPIRE", "MEMO_HARDMAX", "OPNOTICE", "SECUREFOUNDER", + "PEACE", "SECURE", "NO_EXPIRE", "MEMO_HARDMAX", "OPNOTICE", "SECUREFOUNDER", "SIGNKICK", "SIGNKICK_LEVEL", "XOP", "SUSPENDED", "PERSIST", "" }; @@ -118,6 +118,7 @@ class CoreExport ChannelInfo : public Extensible, public Flags<ChannelInfoFlag, private: typedef std::multimap<ChannelModeName, ModeLock> ModeList; private: + NickCore *founder; /* Channel founder */ std::vector<ChanAccess *> access; /* List of authorized users */ std::vector<AutoKick *> akick; /* List of users to kickban */ std::vector<BadWord *> badwords; /* List of badwords */ @@ -139,7 +140,6 @@ class CoreExport ChannelInfo : public Extensible, public Flags<ChannelInfoFlag, ~ChannelInfo(); Anope::string name; /* Channel name */ - NickCore *founder; NickCore *successor; /* Who gets the channel if the founder nick is dropped or expires */ Anope::string desc; @@ -167,6 +167,16 @@ class CoreExport ChannelInfo : public Extensible, public Flags<ChannelInfoFlag, int16 floodlines, floodsecs; /* For FLOOD kicker */ int16 repeattimes; /* For REPEAT kicker */ + /** Change the founder of the channek + * @params nc The new founder + */ + void SetFounder(NickCore *nc); + + /** Get the founder of the channel + * @return The founder + */ + NickCore *GetFounder() const; + /** Find which bot should send mode/topic/etc changes for this channel * @return The bot */ |
