Code: Select all
set prefix_priority "BotA BotB"
Code: Select all
proc prefix_priority {chan} {
global botnet-nick prefix_priority
if {$prefix_priority == ""} {return 1}
foreach bot $prefix_priority {
if {[string tolower $bot] == [string tolower ${botnet-nick}]} {return 1}
if {[set nick [hand2nick $bot $chan]] != "" && [isop $nick $chan] && ![onchansplit $nick $chan]} {return 0}
}
return 1
}
Code: Select all
if {![prefix_priority $chan]} {return 0}