Mercurial > hg > batmud > ggrtf
changeset 1458:9c71601f608a
Change stethoscope handling logic.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Dec 2011 11:36:43 +0200 |
parents | 54a26d1f4407 |
children | 90acf469830c |
files | ggrtf.tf |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ggrtf.tf Sun Oct 23 20:55:42 2011 +0300 +++ b/ggrtf.tf Mon Dec 26 11:36:43 2011 +0200 @@ -2167,9 +2167,9 @@ /gstatus_update -/def -i -ag -msimple -t"Dunk dunk" gheartbeat_do =\ +/def -i gheartbeat_do =\ /let _hbtime=$[time()]%;\ - /if ({1}!~"force")\ + /if ({1}=~"real")\ /let _hblast=%{heartbeat_last_real}%;\ /set heartbeat_last_real=%{_hbtime}%;\ /set heartbeat_last=%{_hbtime}%;\ @@ -2191,6 +2191,10 @@ /endif%;\ /endif +/def -i -msimple -t"Dunk dunk" gheartbeat_dunk =\ + /gheartbeat_do real%;\ + /substitute -aCgreen Dunk dunk [%{heartbeat_cnt}].%;\ + /def -i gheartbeat_sc =\ /if (heartbeat_discard)\ @@ -2198,7 +2202,6 @@ /return%;\ /endif%;\ /if (status_sp - status_oldsp > 30 | status_ep - status_oldep > 5)\ - /gheartbeat_do%;\ /substitute -p %{status_qline} @{Cgreen}[%{heartbeat_cnt}]@{n}%;\ /gheartbeat_tick NORMAL%;\ /endif