i had a request to add a auth check if the nick is auth via nickserv and is validated in eggdrop users file
in this code im not sure how to integrate this in a 307 numeric raw check if the nick is identified as on some network like dalnet where we plan to use this users dont have a static IP but rather their IP keeps changing so we cant use the internal auth in eggdrop as that usually uses nick!ident@host
this is what we work with so far:
Code: Select all
bind pub -|- !v pub:voice
proc pub:voice {nick host hand chan text} {
if {![botisop $chan]} { puthelp "NOTICE $nick :I'm not oped on $chan." ; return 0 }
if {![isvoice $nick $chan] && $text == "" && ([matchattr $hand on|on $chan] || [isop $nick $chan] || [ishalfop $nick $chan])} { pushmode $chan +v $nick }
if {![matchattr $hand o|o $chan] && ![isop $nick $chan] && ![ishalfop $nick $chan]} { return 0 }
set users [list]
foreach user [split $text] {
set user "[string trimleft $user "!~&@"]"
set user "[string trimright $user ":"]"
if {![onchan $user $chan]} {
putserv "NOTICE $nick :$user is not on channel $chan"
} else {
if {![isvoice $user $chan] && ![string match -nocase "*$::botnick*" $user]} { pushmode $chan +v $user }
}
}
}