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:
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user