View Issue Details

IDProjectCategoryView StatusLast Update
0005112unrealircdpublic2019-07-01 18:19
ReporterPeGaSuS Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status acknowledgedResolutionopen 
PlatformUnixOSUbuntuOS Version18.04 LTS
Product Version4.0.18 
Summary0005112: Add option to display a content of a file with a 'aliased' command
DescriptionSometimes 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.
TagsNo tags attached.
3rd party modules

Activities

PeGaSuS

2018-07-05 12:23

reporter   ~0020184

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.

PeGaSuS

2018-07-05 12:33

reporter   ~0020185

Would be nice also, if the file could be loaded with remote includes.

syzop

2018-07-14 16:48

administrator   ~0020206

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.

PeGaSuS

2019-07-01 18:19

reporter   ~0020758

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.

Issue History

Date Modified Username Field Change
2018-07-05 12:21 PeGaSuS New Issue
2018-07-05 12:23 PeGaSuS Note Added: 0020184
2018-07-05 12:33 PeGaSuS Note Added: 0020185
2018-07-14 16:48 syzop Note Added: 0020206
2018-07-14 16:48 syzop Status new => acknowledged
2019-07-01 18:19 PeGaSuS Note Added: 0020758