bancho-irc ~master (2021-06-11T16:52:42Z)
Dub
Repo
BanchoRatelimiter
bancho
ratelimit
Undocumented in source.
@
safe
struct
BanchoRatelimiter (
int
publicMax
= 6
Duration
publicTime
= 6.
seconds
int
privateMax
= 5
Duration
privateTime
= 1.
seconds
) {
ChatRatelimiter
!(
publicMax
,
publicTime
)
publicLimit
;
ChatRatelimiter
!(
privateMax
,
privateTime
)
privateLimit
;
void
load
();
void
putWait
(string channel, bool put);
bool
putWaitNothrow
(string channel, bool put);
bool
peekInstant
(string channel);
bool
peekBase
(string channel);
}
Members
Functions
load
void
load
()
Undocumented in source. Be warned that the author may not have intended to support it.
peekBase
bool
peekBase
(string channel)
Undocumented in source. Be warned that the author may not have intended to support it.
peekInstant
bool
peekInstant
(string channel)
Undocumented in source. Be warned that the author may not have intended to support it.
putWait
void
putWait
(string channel, bool put)
Undocumented in source. Be warned that the author may not have intended to support it.
putWaitNothrow
bool
putWaitNothrow
(string channel, bool put)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
privateLimit
ChatRatelimiter
!(
privateMax
,
privateTime
)
privateLimit
;
Undocumented in source.
publicLimit
ChatRatelimiter
!(
publicMax
,
publicTime
)
publicLimit
;
Undocumented in source.
Meta
Source
See Implementation
bancho
ratelimit
functions
waitForInterrupt
structs
BanchoRatelimiter
ChatRatelimiter