From 44e989812923ab00bfb2f9a71a0d93a46a592460 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 22 Feb 2012 18:56:14 +0000 Subject: [PATCH] Uglier than ugly hack to fix block log any many others by not having the username prepended on the messages --- includes/logging/LogFormatter.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index ab8b307ec5..db67b09262 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -171,6 +171,7 @@ class LogFormatter { */ public function getIRCActionText() { $this->plaintext = true; + $this->irctext = true; $text = $this->getActionText(); $entry = $this->entry; @@ -250,6 +251,7 @@ class LogFormatter { break; } break; + // case 'suppress' --private log -- aaron (sign your messages so we know who to blame in a few years :-D) // default: @@ -522,7 +524,11 @@ class LegacyLogFormatter extends LogFormatter { ); $performer = $this->getPerformerElement(); - return $performer . $this->msg( 'word-separator' )->text() . $action; + if ( !$this->irctext ) { + $action = $performer . $this->msg( 'word-separator' )->text() . $action; + } + + return $action; } } -- 2.20.1