X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=ypp-chatlog-alerter;h=05a9c2001c7e516b8a8292db51ac0d11313c9194;hp=275d7b5fc3d1e55f23311b73959e7a19e1a906c3;hb=56930e8be13d91872c740164e9eb632d5477a455;hpb=6c12b260489687e82eaa1c6fed353dd2a40da838 diff --git a/ypp-chatlog-alerter b/ypp-chatlog-alerter index 275d7b5..05a9c20 100755 --- a/ypp-chatlog-alerter +++ b/ypp-chatlog-alerter @@ -282,7 +282,8 @@ proc message {pirate msg} { set ix [lsearch -exact $pirates $pirate] set now [clock seconds] - if {$ix<0 || [lindex $times $ix] < $now-$bell_again} { + if {$bell_again > -2 && + ($ix<0 || [lindex $times $ix] < $now-$bell_again)} { bell -nice } if {$ix < 0} { @@ -319,7 +320,7 @@ proc parseargs {} { if {![string compare $arg --test-tints]} { showtints } elseif {![string compare $arg --no-bell]} { - set bell_again -1 + set bell_again -2 } else { error "unknown option $arg" }