summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_exemptchanops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp
index 7a40063fc..b10a44859 100644
--- a/src/modules/m_exemptchanops.cpp
+++ b/src/modules/m_exemptchanops.cpp
@@ -48,7 +48,7 @@ class ExemptChanOps : public ListModeBase
return false;
restriction.assign(entry, 0, colon);
- prefix.assign(entry, colon + 1);
+ prefix.assign(entry, colon + 1, std::string::npos);
return true;
}