detekt & spotbugs cleanup.
This commit is contained in:
parent
f7e2651619
commit
9b2dc8587f
4 changed files with 14 additions and 10 deletions
|
@ -45,7 +45,7 @@ class Ignore(defaultIgnore: String) : AbstractCommand() {
|
|||
}
|
||||
}
|
||||
|
||||
override val command = IGNORE
|
||||
override val command = IGNORE_CMD
|
||||
override val help = listOf(
|
||||
Utils.bold("To check your ignore status:"),
|
||||
Utils.helpIndent("%s: $command"),
|
||||
|
@ -57,7 +57,7 @@ class Ignore(defaultIgnore: String) : AbstractCommand() {
|
|||
override val isVisible = true
|
||||
|
||||
companion object {
|
||||
const val IGNORE = "ignore"
|
||||
const val IGNORE_CMD = "ignore"
|
||||
private val ignored = HashSet<String>()
|
||||
|
||||
@JvmStatic
|
||||
|
|
|
@ -131,7 +131,7 @@ class UrlMgr(defaultTags: String, keywords: String) : AbstractCommand() {
|
|||
|
||||
if (Ignore.isNotIgnored(sender) && (cmds.size == 1
|
||||
|| !cmds[1].contains(bot.nick)
|
||||
|| !cmds[1].endsWith(" (${Ignore.IGNORE}"))) {
|
||||
|| !cmds[1].endsWith(" (${Ignore.IGNORE_CMD}"))) {
|
||||
val link = cmds[0].trim()
|
||||
var isBackup = false
|
||||
val dupIndex: Int = findDupEntry(link)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue