Cleaned up.
This commit is contained in:
parent
65e221a4f6
commit
54e6e6dd87
2 changed files with 4 additions and 4 deletions
|
@ -60,8 +60,8 @@ class Addons {
|
|||
|
||||
if (isEnabled) {
|
||||
modules.add(this)
|
||||
modulesNames.add(this.javaClass.simpleName)
|
||||
names.addAll(this.commands)
|
||||
modulesNames.add(javaClass.simpleName)
|
||||
names.addAll(commands)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ class Pinboard {
|
|||
*/
|
||||
private fun Date.toTimestamp(): String {
|
||||
return ZonedDateTime.ofInstant(
|
||||
this.toInstant().truncatedTo(ChronoUnit.SECONDS),
|
||||
toInstant().truncatedTo(ChronoUnit.SECONDS),
|
||||
ZoneId.systemDefault()
|
||||
).format(DateTimeFormatter.ISO_INSTANT)
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ class Pinboard {
|
|||
* Returns the pinboard.in extended attribution line.
|
||||
*/
|
||||
private fun EntryLink.postedBy(ircServer: String): String {
|
||||
return "Posted by ${this.nick} on ${this.channel} ( $ircServer )"
|
||||
return "Posted by $nick on $channel ( $ircServer )"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue