From 3c9af14ffcbb04941239e04f5d54f96c950d1cef Mon Sep 17 00:00:00 2001 Message-Id: <3c9af14ffcbb04941239e04f5d54f96c950d1cef.1715733041.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 31 Jan 2001 17:46:39 +0000 Subject: [PATCH] Reorder security checks for !op etc. Organization: Straylight/Edgeware From: Ian Jackson --- bot.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- [mdw]