View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006122 | unreal | ircd | public | 2022-06-01 04:02 | 2022-06-01 08:57 |
Reporter | westor | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | new | Resolution | open | ||
Product Version | 6.0.4-rc1 | ||||
Summary | 0006122: @if module-loaded() @endif doesn't working sometimes when unloading a module | ||||
Description | Hello, It seems when you have @if module-loaded("module") @endif set under unrealircd.conf and you trying to unload a module after /REHASH ircd gives errors. Example Errors (line 150 is the following configuration): config.CONFIG_ERROR_GENERIC [error] /home/westor/unrealircd/conf/unrealircd.conf:150: unknown directive set::antirandom config.CONFIG_ERROR_GENERIC [error] 1 errors encountered config.CONFIG_ERROR_GENERIC [error] IRCd configuration failed to pass testing config.CONFIG_NOT_LOADED [error] IRCd configuration failed to load Example Configuration: @if module-loaded("antirandom") set { antirandom { threshold 5; ban-action zline; ban-time 5m; ban-reason "You look like a bot. Be sure to fill in your nick/ident/realname properly."; convert-to-lowercase yes; show-failedconnects yes; except { ip { 192.168.*; 127.*; } } } } @endif - Thanks! | ||||
Steps To Reproduce | 1. Load antirandom module 2. Set the above configuration 3. Rehash 4. Unload antirandom 5. Rehash 6. Check that IRCd returns config errors | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||