summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-01-27 19:28:54 +0100
committerlassulus <lassulus@lassul.us>2019-01-27 19:28:54 +0100
commit88a281c020e6fc29c8641be1f5c4cdb30638dcd2 (patch)
treeda4d48813fb8889b056ebb0387e1c27c04709d63
parent5926a718593544c69301f4168d30051ff1d61aab (diff)
parent6965a1df8e7fe5e85128349c31057fdc8c8d54f6 (diff)
Reaktor sed-plugin: use mirc colorcodes
-rw-r--r--krebs/3modules/reaktor2.nix4
-rwxr-xr-xkrebs/5pkgs/simple/Reaktor/scripts/sed-plugin.py2
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