Code: Select all
# Op someone in the channel
# Usage: !op <nick>
proc pub:op {nick uhost hand chan args} {
set args [split [cleanarg $args]]
if {[llength $args] == 0 && ([matchattr $hand n] || [matchattr $hand "|n" $chan] || [matchattr $hand o $chan] || [matchattr $hand "|o" $chan])} {
putserv "MODE $chan +o $nick"
}
if {[llength $args]<1} {
notice $nick "Usage: !op <nick>"
return 0
}
set who [lindex $args 0]
if {$hand == "*"} {return 0}
if {([isop $hand $chan]) || ([matchattr $hand "|o" $chan]) || ([matchattr $hand "o"])} {
putserv "MODE $chan +o $who"
putcmdlog "<<$nick>> !$hand! op $chan $who"
} else {
notice $nick "You can't do that!"
}
}
Code: Select all
# Op someone in the channel
# Usage: !op <nick>
bind pub - !op pub:op
proc pub:op {nick uhost hand chan arg} {
set who [lindex [split $arg] 0]
if {$who == ""} {
if {[matchattr $hand n] || [matchattr $hand o $chan]} {
if {[isop $nick $chan]} {
putserv "PRIVMSG $chan :\002$nick\002 - You are already @ here"
return
} else {
pushmode $chan +o $nick
}
}
} else {
if {[isop $who $chan]} { putserv "PRIVMSG $chan :\002$nick\002 - \00304$who\003 is already @ here"; return }
if {[matchattr $hand n] || [matchattr $hand o $chan]} {
pushmode $chan +o $who
}
}
}
I have a fresh clean empty userlist with just mabus in itnml375 wrote:Step 1, check users' hostmasks...
Step 2, add/remove/update hostmasks to properly identify the users in the channel...
Step 3, use .channels once again to verify that your eggdrop now recognizes them...