From 4ab6acee091823525b5fd017261119d704d9c7e8 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 15 Sep 2016 15:18:38 +0200 Subject: [PATCH] Always use pipe separator for notes in warning log Warning reasons might contain parentheses so it may be ambiguous, and deletions are already logged with the pipe character, which is also used when setting the warning, anyway. --- src/warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/warnings.py b/src/warnings.py index fd07de8..3004f12 100644 --- a/src/warnings.py +++ b/src/warnings.py @@ -890,7 +890,7 @@ def fwarn(cli, nick, chan, rest): if var.LOG_CHANNEL: log_reason = reason if notes is not None: - log_reason += " ({0})".format(notes) + log_reason += " | " + notes if expires is None: log_length = messages["fwarn_log_add_noexpiry"] else: