Fixed me keyword use for ops.
This commit is contained in:
parent
6f297a0d6b
commit
79efd005d1
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ class Ignore(bot: Mobibot) : AbstractCommand(bot) {
|
||||||
isOp: Boolean,
|
isOp: Boolean,
|
||||||
isPrivate: Boolean
|
isPrivate: Boolean
|
||||||
) {
|
) {
|
||||||
if (!isOp) {
|
val isMe = args.trim().equals(me, true)
|
||||||
|
if (isMe || !isOp) {
|
||||||
val nick = sender.lowercase()
|
val nick = sender.lowercase()
|
||||||
val isMe = args.lowercase().startsWith(me)
|
|
||||||
ignoreNick(bot, nick, isMe, isPrivate)
|
ignoreNick(bot, nick, isMe, isPrivate)
|
||||||
} else {
|
} else {
|
||||||
ignoreOp(bot, sender, args, isPrivate)
|
ignoreOp(bot, sender, args, isPrivate)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue