Reaktor sed-plugin: use mirc colorcodes

This commit is contained in:
lassulus 2019-01-27 19:28:54 +01:00
commit 88a281c020
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@ with import <stockholm/lib>;
default = self.config.systemd-service-name; default = self.config.systemd-service-name;
type = types.str; type = types.str;
}; };
useTLS = mkOption {
default = self.config.port == "6697";
type = types.bool;
};
}; };
})); }));
}; };

View File

@ -46,7 +46,7 @@ if is_regex(line):
print('to many lines, skipped') print('to many lines, skipped')
else: else:
if last.strip() != ret.strip(): 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: if ret:
d[usr] = ret d[usr] = ret