diff options
-rw-r--r-- | include/channels.h | 4 | ||||
-rw-r--r-- | src/channels.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/channels.h b/include/channels.h index 2bf03d6b4..3947ffc2b 100644 --- a/include/channels.h +++ b/include/channels.h @@ -120,6 +120,10 @@ class chanrec : public Extensible std::map<char*,char*> internal_halfop_userlist; std::map<char*,char*> internal_voice_userlist; + /** Parameters for custom modes + */ + std::vector<ModeParameter> custom_mode_params; + /** Channel topic. * If this is an empty string, no channel topic is set. */ diff --git a/src/channels.cpp b/src/channels.cpp index 8e5917d85..9335fe251 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -66,7 +66,7 @@ extern chan_hash chanlist; using namespace std; -std::vector<ModeParameter> custom_mode_params; +//std::vector<ModeParameter> custom_mode_params; chanrec* ForceChan(chanrec* Ptr,ucrec &a,userrec* user, int created); @@ -139,7 +139,6 @@ bool chanrec::IsCustomModeSet(char mode) return (strchr(this->custom_modes,mode)); } -/* XXX - would it not be better to store a vector for each channel, rather than one huge list? -- w00t */ std::string chanrec::GetModeParameter(char mode) { if (custom_mode_params.size()) |