1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-30 21:26:37 +02:00

Change maximum chanmode +l value to 1 million and "coincidentally" also

change the IsInvalidChannelTS() macro to check for this value or lower.
This commit is contained in:
Bram Matthys
2021-08-11 15:39:15 +02:00
parent 9efe590a8e
commit 9308e5b8a0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2007,7 +2007,7 @@ struct Link {
} value;
};
#define IsInvalidChannelTS(x) ((x) < 750000) /**< Invalid channel creation time */
#define IsInvalidChannelTS(x) ((x) <= 1000000) /**< Invalid channel creation time */
/**
* @addtogroup CommonStructs
+2 -2
View File
@@ -987,8 +987,8 @@ process_listmode:
v = atoi(param);
if (v < 0)
v = 1; /* setting +l with a negative number makes no sense */
if (v > 1000000000)
v = 1000000000; /* some kind of limit, 1 billion (mrah...) */
if (v > 1000000)
v = 1000000; /* some kind of limit, 1 million (mrah...) */
if (channel->mode.limit == v)
break;
channel->mode.limit = v;