From: Ian Jackson Date: Wed, 31 Jan 2001 17:46:39 +0000 (+0000) Subject: Reorder security checks for !op etc. X-Git-Tag: branchpoint-2001-10-09-tell~27 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/ircbot/commitdiff_plain/3c9af14ffcbb04941239e04f5d54f96c950d1cef Reorder security checks for !op etc. --- diff --git a/bot.tcl b/bot.tcl index 5bbaeb0..f9dcda8 100755 --- a/bot.tcl +++ b/bot.tcl @@ -1167,6 +1167,8 @@ proc channelmgr_monoop {} { upvar 1 target target global chan_nicks + prefix_nick + if {[ischan $dest]} { set target $dest } if {[ta_anymore]} { set target [ta_word] } ta_nomore @@ -1177,8 +1179,8 @@ proc channelmgr_monoop {} { error "I am not on $target." } if {![ischan $target]} { error "not a valid channel" } + if {![chandb_exists $target]} { error "$target is not a managed channel." } - prefix_nick nick_securitycheck 1 channel_securitycheck $target $n }