Skip to content
Snippets Groups Projects
Verified Commit ccd3583d authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Don’t show hostmasks in kicks and kills

parent 3ab39106
No related branches found
No related tags found
No related merge requests found
...@@ -502,24 +502,20 @@ class QuasselMessageRenderer @Inject constructor( ...@@ -502,24 +502,20 @@ class QuasselMessageRenderer @Inject constructor(
context.getString(R.string.message_format_kick_1), context.getString(R.string.message_format_kick_1),
contentFormatter.formatNick(user, false, monochromeForeground, false), contentFormatter.formatNick(user, false, monochromeForeground, false),
contentFormatter.formatPrefix(message.content.senderPrefixes), contentFormatter.formatPrefix(message.content.senderPrefixes),
contentFormatter.formatNick( contentFormatter.formatNick(message.content.sender,
message.content.sender,
self, self,
monochromeForeground, monochromeForeground,
messageSettings.showHostmaskActions false)
)
) )
} else { } else {
SpanFormatter.format( SpanFormatter.format(
context.getString(R.string.message_format_kick_2), context.getString(R.string.message_format_kick_2),
contentFormatter.formatNick(user, false, monochromeForeground, false), contentFormatter.formatNick(user, false, monochromeForeground, false),
contentFormatter.formatPrefix(message.content.senderPrefixes), contentFormatter.formatPrefix(message.content.senderPrefixes),
contentFormatter.formatNick( contentFormatter.formatNick(message.content.sender,
message.content.sender,
self, self,
monochromeForeground, monochromeForeground,
messageSettings.showHostmaskActions false),
),
contentFormatter.formatContent(reason, contentFormatter.formatContent(reason,
monochromeForeground, monochromeForeground,
message.content.networkId) message.content.networkId)
...@@ -542,24 +538,20 @@ class QuasselMessageRenderer @Inject constructor( ...@@ -542,24 +538,20 @@ class QuasselMessageRenderer @Inject constructor(
context.getString(R.string.message_format_kill_1), context.getString(R.string.message_format_kill_1),
contentFormatter.formatNick(user, false, monochromeForeground, false), contentFormatter.formatNick(user, false, monochromeForeground, false),
contentFormatter.formatPrefix(message.content.senderPrefixes), contentFormatter.formatPrefix(message.content.senderPrefixes),
contentFormatter.formatNick( contentFormatter.formatNick(message.content.sender,
message.content.sender,
self, self,
monochromeForeground, monochromeForeground,
messageSettings.showHostmaskActions false)
)
) )
} else { } else {
SpanFormatter.format( SpanFormatter.format(
context.getString(R.string.message_format_kill_2), context.getString(R.string.message_format_kill_2),
contentFormatter.formatNick(user, false, monochromeForeground, false), contentFormatter.formatNick(user, false, monochromeForeground, false),
contentFormatter.formatPrefix(message.content.senderPrefixes), contentFormatter.formatPrefix(message.content.senderPrefixes),
contentFormatter.formatNick( contentFormatter.formatNick(message.content.sender,
message.content.sender,
self, self,
monochromeForeground, monochromeForeground,
messageSettings.showHostmaskActions false),
),
contentFormatter.formatContent(reason, contentFormatter.formatContent(reason,
monochromeForeground, monochromeForeground,
message.content.networkId) message.content.networkId)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment