mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 16:13:13 +02:00
Fixed a problem with set::htm::incoming-rate being interpreted incorrectly
This commit is contained in:
@@ -534,3 +534,5 @@
|
||||
the ircd (#0002120) reported by SineSwiper.
|
||||
- Made it so +f notices are sent to %#chan, not @%#chan (#0002248) reported by aquanight.
|
||||
- Hopefully fixed the last of the alloca warnings (#0002202) reported by Stoebi.
|
||||
- Fixed a problem with set::htm::incoming-rate being interpreted incorrectly (#0002266)
|
||||
reported by tabrisnet.
|
||||
|
||||
+4
-1
@@ -463,7 +463,10 @@ DLLFUNC int htm_config_run(ConfigFile *cf, ConfigEntry *ce, int type) {
|
||||
noisy_htm = 0;
|
||||
}
|
||||
else if (!strcmp(cep->ce_varname, "incoming-rate"))
|
||||
{
|
||||
LRV = config_checkval(cep->ce_vardata, CFG_SIZE);
|
||||
LRV /= 1024;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
@@ -474,7 +477,7 @@ DLLFUNC int htm_stats(aClient *sptr, char *stats) {
|
||||
if (*stats == 'S') {
|
||||
sendto_one(sptr, ":%s %i %s :htm::mode: %s", me.name, RPL_TEXT,
|
||||
sptr->name, noisy_htm ? "noisy" : "quiet");
|
||||
sendto_one(sptr, ":%s %i %s :htm::incoming-rate: %d", me.name, RPL_TEXT,
|
||||
sendto_one(sptr, ":%s %i %s :htm::incoming-rate: %d kb/s", me.name, RPL_TEXT,
|
||||
sptr->name, LRV);
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user