We no longer remove bans when they're removed manually, unless they match an extban
This commit is contained in:
+2
-7
@@ -23,7 +23,7 @@ namespace eval cmgmt {
|
||||
# Command to upload the file
|
||||
# The ban list file is piped into the command via stdin (with `cat $filename |`)
|
||||
# so your command must read from stdin
|
||||
variable upCommand "curl -s -F file=@- https://x0.at/"
|
||||
variable upCommand "curl -s -F file=@- https://hotpaste.0bin.xyz/"
|
||||
|
||||
# Set the banmask type to use in banning the user
|
||||
# Available types are:
|
||||
@@ -101,7 +101,7 @@ namespace eval cmgmt {
|
||||
# If you touch the code below and then complain the script "suddenly stopped working" I'll touch you at night.
|
||||
# ----------
|
||||
if { [catch { package require msgcat }] } {
|
||||
putloglev o * "\[Channel Management\] This script needs msgcat package to work. The script cannot be loaded"
|
||||
putloglev o * "\[Channel Management\] This script needs msgcat package to work. The script cannot be loaded."
|
||||
return
|
||||
}
|
||||
::msgcat::mclocale $::cmgmt::locale
|
||||
@@ -945,13 +945,8 @@ namespace eval cmgmt {
|
||||
if {[matchstr "~*" $target] && [isban $target $chan]} {
|
||||
killchanban $chan $target
|
||||
return 0
|
||||
} elseif {[isban $target $chan]} {
|
||||
killchanban $chan $target
|
||||
putserv "NOTICE @$chan :[format [::msgcat::mc auto.removed] $target $chan]"
|
||||
return 0
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user