summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index f23546d75..5aac8191d 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -659,7 +659,7 @@ void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int
// reported by mech: large values cause underflow
if (chan->limit < 0)
- chan->limit = MAXINT;
+ chan->limit = 0x7FFFFF;
if (chan->limit)
{