diff options
author | lassulus <lassulus@lassul.us> | 2019-01-27 19:28:54 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-01-27 19:28:54 +0100 |
commit | 88a281c020e6fc29c8641be1f5c4cdb30638dcd2 (patch) | |
tree | da4d48813fb8889b056ebb0387e1c27c04709d63 /krebs | |
parent | 5926a718593544c69301f4168d30051ff1d61aab (diff) | |
parent | 6965a1df8e7fe5e85128349c31057fdc8c8d54f6 (diff) |
Reaktor sed-plugin: use mirc colorcodes
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/3modules/reaktor2.nix | 4 | ||||
-rwxr-xr-x | krebs/5pkgs/simple/Reaktor/scripts/sed-plugin.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/krebs/3modules/reaktor2.nix b/krebs/3modules/reaktor2.nix index d31447c93..3f263d010 100644 --- a/krebs/3modules/reaktor2.nix +++ b/krebs/3modules/reaktor2.nix @@ -37,6 +37,10 @@ with import <stockholm/lib>; default = self.config.systemd-service-name; type = types.str; }; + useTLS = mkOption { + default = self.config.port == "6697"; + type = types.bool; + }; }; })); }; diff --git a/krebs/5pkgs/simple/Reaktor/scripts/sed-plugin.py b/krebs/5pkgs/simple/Reaktor/scripts/sed-plugin.py index ecb03917b..4925b25bb 100755 --- a/krebs/5pkgs/simple/Reaktor/scripts/sed-plugin.py +++ b/krebs/5pkgs/simple/Reaktor/scripts/sed-plugin.py @@ -46,7 +46,7 @@ if is_regex(line): print('to many lines, skipped') else: if last.strip() != ret.strip(): - print("\x1b[1m{}\x1b[0m meant: {}".format(usr, ret.strip())) + print("\x02{}\x02 meant: {}".format(usr, ret.strip())) if ret: d[usr] = ret |