summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modes/cmode_k.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modes/cmode_k.cpp b/src/modes/cmode_k.cpp
index b32ad5c2b..18fb2165b 100644
--- a/src/modes/cmode_k.cpp
+++ b/src/modes/cmode_k.cpp
@@ -22,6 +22,9 @@ ModePair ModeChannelKey::ModeSet(userrec* source, userrec* dest, chanrec* channe
void ModeChannelKey::RemoveMode(chanrec* channel)
{
+ /** +k needs a parameter when being removed,
+ * so we have a special-case RemoveMode here for it
+ */
char moderemove[MAXBUF];
const char* parameters[] = { channel->name, moderemove, channel->key };