diff --git a/dcc/text.py b/dcc/text.py index 8e1ace9..a349a62 100644 --- a/dcc/text.py +++ b/dcc/text.py @@ -32,7 +32,12 @@ class Text(dcc.doom_base.WadMap): return parser def take_action(self, parsed_args): - text = sys.stdin.read().rstrip() + text = None + map_names = self._config["map_names"] + if map_names is not None: + text = map_names[f"map{parsed_args.map}"] + if text is None: + text = sys.stdin.read().rstrip() if not parsed_args.nomap: text = "MAP{}: {}".format(parsed_args.map, text) text = "{}\n{}".format(text, parsed_args.demotype)