chiark
/
gitweb
/
~mdw
/
ircbot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf6ea4d
)
Reorder security checks for !op etc.
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 31 Jan 2001 17:46:39 +0000
(17:46 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 31 Jan 2001 17:46:39 +0000
(17:46 +0000)
bot.tcl
patch
|
blob
|
blame
|
history
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
}