~AK49BWL, +qo
&GOD, +ao
&The_Wolf, +ao
@badSol, +o
@roadlet_411, +o
Player5
when I use !usermodes to activate, I get this on the output:
q=1 a=0 o=4 h=0 v=0 n=1 total=6
So the admins are seemingly being ignored by the script, or I did something wrong... I'm quite new to scripting so the latter is probably the case. But the owner is being detected, so I did something correct there.
The script works in the sense that it runs and throws no errors, but it doesn't work like I had hoped. My script as it sits currently:
Code: Select all
#test.tcl - BWL's always-on TCL script testing
bind pub - !usermodes pum
proc pum {nick uhost hand channel arg} {
set users [llength [chanlist $channel]]
set user_total $users
set user_q 0
set user_a 0
set user_o 0
set user_h 0
set user_v 0
set user_n 0
foreach user [chanlist $channel] {
if { [matchattr $user q $channel] } {
incr user_q
} elseif { [matchattr $user a $channel] } {
incr user_a
} elseif { [isop $user $channel] } {
incr user_o
} elseif { [ishalfop $user $channel] } {
incr user_h
} elseif { [isvoice $user $channel] } {
incr user_v
} else {
incr user_n
}
}
putserv "PRIVMSG $channel :q=$user_q a=$user_a o=$user_o h=$user_h v=$user_v n=$user_n total=$user_total"
}
putlog "BWL's Testing TCL Script loaded."
Well I did some further messing around but eventually put the script back the way it is up there... But I also did this: I made user AK49BWL just a regular user and tried !usermodes again, and it gave me the exact same result of q=1 a=0 o=4 h=0 v=0 n=1 total=6..... When there is no +qo! So I really don't know what's going on here.