From: Niklas Laxström Date: Wed, 22 Feb 2012 18:56:14 +0000 (+0000) Subject: Uglier than ugly hack to fix block log any many others by not having the username... X-Git-Tag: 1.31.0-rc.0~24568 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=44e989812923ab00bfb2f9a71a0d93a46a592460;p=lhc%2Fweb%2Fwiklou.git Uglier than ugly hack to fix block log any many others by not having the username prepended on the messages --- 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; } }