View Issue Details

IDProjectCategoryView StatusLast Update
0004722unrealircdpublic2020-09-27 18:23
ReporterCoreDuo Assigned Tosyzop  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.0.5 
Fixed in Version5.0.7-rc1 
Summary0004722: /stats b is not listing the badword filters
DescriptionIt's just sending a list of the available flags again.

http://pastie.org/pastes/10924746/text?key=2uc5x5stpzrthdcqzg9u3a
TagsNo tags attached.
3rd party modules

Activities

Gumbie02151

2016-09-29 16:21

reporter   ~0019426

I second this bug, but have a hard time calling it a bug, when the code in m_stats.c is missing for badwords all together!

 If it's a feature not addressed yet, maybe noting that in the /stats menu list would be beneficial.

Gottem

2017-02-21 00:44

developer   ~0019658

Apparently this is still an issue on v4.0.11. I may whip up a patch in the next few days. =]

Gottem

2017-02-21 17:08

developer   ~0019660

Turns out Syzop already has a plan for this; the censor.c module files (both umode and chmode) contain a stats_badwords() function which is supposed to be called modularly. That's also why Gumble02151 commented on relevant code missing from m_stats entirely.

So I'm not gonna work on this, my patch would probably never get accepted into the base code due to conflicts with Syzop's code. =]

syzop

2017-03-30 20:17

administrator   ~0019727

The original idea was writing a separate API for it.. rather overkill.

Instead we should just call HOOKTYPE_STATS from m_stats() with the appropriate flag. Then modules can output stuff if it's "their" flag. Easy.

syzop

2020-09-27 18:23

administrator   ~0021765

Fixed, thanks for the report!

commit b4b7908612faba80e3c57cdf1575abc6a6ae3131 (HEAD -> unreal50, origin/unreal50)
Author: Bram Matthys <[email protected]>
Date: Sun Sep 27 18:16:45 2020 +0200

    Fix '/STATS b' and '/STATS badword' not working.
    Reported by CoreDuo in https://bugs.unrealircd.org/view.php?id=4722

https://github.com/unrealircd/unrealircd/commit/b4b7908612faba80e3c57cdf1575abc6a6ae3131

Issue History

Date Modified Username Field Change
2016-07-31 06:39 CoreDuo New Issue
2016-09-29 16:21 Gumbie02151 Note Added: 0019426
2017-02-21 00:44 Gottem Note Added: 0019658
2017-02-21 17:08 Gottem Note Added: 0019660
2017-03-30 20:17 syzop Note Added: 0019727
2020-09-27 18:23 syzop Assigned To => syzop
2020-09-27 18:23 syzop Status new => resolved
2020-09-27 18:23 syzop Resolution open => fixed
2020-09-27 18:23 syzop Fixed in Version => 5.0.7-rc1
2020-09-27 18:23 syzop Note Added: 0021765