chiark / gitweb /
Reorder security checks for !op etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Jan 2001 17:46:39 +0000 (17:46 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Jan 2001 17:46:39 +0000 (17:46 +0000)
bot.tcl

diff --git a/bot.tcl b/bot.tcl
index 5bbaeb02ae224e51e29ab24c00421f4ddeb61574..f9dcda8ee667944badc362fa4f4021d26b50c01c 100755 (executable)
--- 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
 }