proc channel_securitycheck {channel n} {
# You must also call `nick_securitycheck 1'
- if {[lsearch -exact [irctolower [chandb_get $channel managers]] $n] < 0} {
+ set mgrs [chandb_get $channel managers]
+ if {[lsearch -exact [irctolower $mgrs] [irctolower $n]] < 0} {
error "you are not a manager of $channel"
}
}