summaryrefslogtreecommitdiff
path: root/src/chanserv.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2010-12-30 06:44:18 +0100
committerDukePyrolator <DukePyrolator@anope.org>2010-12-30 06:44:18 +0100
commit3019ba6f434c3578a9bde6c941eb98828db3c221 (patch)
tree82de678563a4fb1a3602a70001cfad87fc67f70d /src/chanserv.cpp
parent2784cd17fc5e0ee4ad0571a6b9e131fa38a93a65 (diff)
restoring topic for permchans on burst
Diffstat (limited to 'src/chanserv.cpp')
-rw-r--r--src/chanserv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chanserv.cpp b/src/chanserv.cpp
index 43d4d3b61..761f6cfbb 100644
--- a/src/chanserv.cpp
+++ b/src/chanserv.cpp
@@ -115,7 +115,7 @@ Anope::string get_mlock_modes(ChannelInfo *ci, int complete)
{
const ModeLock &ml = it->second;
ChannelMode *cm = ModeManager::FindChannelModeByName(ml.name);
- if (!cm)
+ if (!cm || cm->Type == MODE_LIST || cm->Type == MODE_STATUS)
continue;
if (ml.set)
@@ -123,7 +123,7 @@ Anope::string get_mlock_modes(ChannelInfo *ci, int complete)
else
neg += cm->ModeChar;
- if (complete && !ml.param.empty() && (cm->Type == MODE_PARAM || cm->Type == MODE_LIST))
+ if (complete && !ml.param.empty() && cm->Type == MODE_PARAM)
params += " " + ml.param;
}