View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005112 | unreal | ircd | public | 2018-07-05 12:21 | 2019-07-01 18:19 |
Reporter | PeGaSuS | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | acknowledged | Resolution | open | ||
Platform | Unix | OS | Ubuntu | OS Version | 18.04 LTS |
Product Version | 4.0.18 | ||||
Summary | 0005112: Add option to display a content of a file with a 'aliased' command | ||||
Description | Sometimes we might want to add some commands to display to users certain rules or some other help. So, I was thinking of adding something to the configuration file like: command <name> { showfile "/path/to/file" }; This would help for specific users cases only, but I still think it's a pretty neat idea. :D Any thoughts/feedback would be appreciated, especially from the ones that would be interested in a feature like this. | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||
|
Edit: basically, the idea is to the command just print to the user the content of the file, as is, respecting new lines, and so on. |
|
Would be nice also, if the file could be loaded with remote includes. |
|
Yes, it would be a good idea. Perhaps this can be implemented by a module so we can later incorporate it. Like alter m_staff or something like that (though that one has bug 0004891) Acknowledged, but not a target for 4.0.19. |
|
So, I had another idea related to this. Instead the configuration example suggested, I was thinking in something like: loadmodule showfile; And as configuration: showfile { command "/path/to/file"; another "/another/path/to/file"; }; This is useful if we want to display something like a GDPR file (or only the important points and the link to the full article), to give different commands to display different staff, like /admins or /helpers, or even to display some more exhaustive help related to third party modules in a different language. |