Added motd parser

This commit is contained in:
2024-05-20 19:43:05 +02:00
parent fe2962b1f7
commit 29281cd6e4
2 changed files with 3 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ var parsers map[string]Parser = map[string]Parser{
"terminal": {"terminal", "", "", "\n", nil},
// Parser for HTML code
"html": {"html", "<code>", "</code>", "<br>", map[string]string{" ": "&nbsp;"}},
// Parser for motd file
"motd": {"motd", "#!/bin/sh\ncat << 'EOF'\n", "EOF", "\n", nil},
}
// GetParser returns a parser by its key