diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-01 16:42:59 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-01 16:42:59 +0000 |
commit | 46121d8880ab48d9a925f5b046216016d290b356 (patch) | |
tree | 4c0c96709a3a834f03b2d1c0d9603a9307d384d3 /src/channels.cpp | |
parent | d868f0bfb07af0beb032294a5557cb44d60c765b (diff) |
Fix bug found by indigophone where +lk cant be set in defaultmodes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7197 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 7ed166982..dec68341e 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -43,6 +43,12 @@ void chanrec::SetModeParam(char mode,const char* parameter,bool mode_on) { if (n == custom_mode_params.end()) custom_mode_params[mode] = strdup(parameter); + + /* TODO: We really need to do away with this in 1.2 */ + if (mode == 'l') + this->limit = atoi(parameter); + else if (mode == 'k') + strlcpy(this->key, parameter, sizeof(this->key)); } else { @@ -51,6 +57,12 @@ void chanrec::SetModeParam(char mode,const char* parameter,bool mode_on) free(n->second); custom_mode_params.erase(n); } + + /* TODO: See above */ + if (mode == 'l') + this->limit = 0; + else if (mode == 'k') + *this->key = 0; } } |