diff --git a/modules/irc/src/main/IrcApi.scala b/modules/irc/src/main/IrcApi.scala index ebd55db9ce..4a3a312ce2 100644 --- a/modules/irc/src/main/IrcApi.scala +++ b/modules/irc/src/main/IrcApi.scala @@ -38,7 +38,7 @@ final class IrcApi( ) case Some(note) => zulip.sendAndGetLink(stream, "/" + user.username)( - s"${markdown.modLink(mod.user.username)} :pepenote: **${markdown + s"${markdown.modLink(mod.user)} :pepenote: **${markdown .userLink(user.username)}** (${markdown.userNotesLink(user.username)}):\n" + markdown.linkifyUsers(note.text take 2000) ) @@ -70,7 +70,7 @@ final class IrcApi( def commlog(mod: Holder, user: User, reportBy: Option[User.ID]): Funit = zulip(_.mod.adminLog, "private comms checks")({ val finalS = if (user.username endsWith "s") "" else "s" - s"**${markdown modLink mod.user.username}** checked out **${markdown userLink user.username}**'$finalS communications " + s"**${markdown modLink mod.user}** checked out **${markdown userLink user.username}**'$finalS communications " } + reportBy.filter(mod.id !=).fold("spontaneously") { by => s"while investigating a report created by ${markdown.userLink(by)}" })