diff --git a/Chanban/cmgmt.tcl b/Chanban/cmgmt.tcl index 61459ba..d397333 100644 --- a/Chanban/cmgmt.tcl +++ b/Chanban/cmgmt.tcl @@ -163,7 +163,7 @@ namespace eval cmgmt { foreach user [userlist] { if {[matchattr $user mno|mno $chan]} { foreach host [getuser $user HOSTS] { - if {[matchstr $target $host] || [matchstr $host $target]} { + if {[matchstr $banmask $host] || [matchstr $host $banmask]} { putserv "PRIVMSG $chan :[::msgcat::mc prot.user.addban]" return 0 } @@ -555,7 +555,7 @@ namespace eval cmgmt { foreach user [userlist] { if {[matchattr $user mno|mno $chan]} { foreach host [getuser $user HOSTS] { - if {[matchstr $target $host] || [matchstr $host $target]} { + if {[matchstr $banmask $host] || [matchstr $host $banmask]} { putserv "PRIVMSG $chan :[::msgcat::mc prot.user.addban]" return 0 }