This would send a notice to all registered ops in the channel. As for beeping, some clients support the "Bel" code, but not all, while other (such as mIRC) implement functions to remotely trigger the playing of sounds. None of these are standardized however. I would believe it would be easier to implement this scriptwize on the clients themselves, either triggering on the notice from the eggdrop, or by simply detecting the join themselves..
## you can activate/deactive the script
## usage: .chanset #channel +\-help.notify
## bot's will not be notified & channel op will also be notified. Ops/friends will not be triggered on onjoin.
bind join - * alert_ops
setudef flag help.notify
proc alert_ops {nick host hand chan} {
if {[matchattr $hand of|of $chan]} {return 0}
if {![channel get $chan help.notify]} {return 0}
foreach users [chanlist $chan] {
if {([matchattr [nick2hand $users $chan] o|o $chan]) && (![matchattr [nick2hand $users $chan] b])} {
puthelp "NOTICE $users :Alert! $nick joined $chan"
}
}
## you can activate/deactive the script
## usage: .chanset #channel +\-help.notify
## bot's will not be notified & channel op will also be notified. Ops/friends will not be triggered on onjoin.
bind join - * alert_ops
setudef flag help.notify
proc alert_ops {nick host hand chan} {
if {[matchattr $hand of|of $chan]} {return 0}
if {![channel get $chan help.notify]} {return 0}
foreach users [chanlist $chan] {
if {([matchattr [nick2hand $users $chan] o|o $chan]) && (![matchattr [nick2hand $users $chan] b])} {
puthelp "NOTICE $users :Alert! $nick joined $chan"
}
}
}