Project

General

Profile

Actions

Bug #5542

open

/timer off seems not closing a timer correctly

Added by westor (GR) 4 months ago. Updated 4 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
04/12/2022
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

I just saw that /timerNAME off doesn't closing that timer correctly.

Reproduce Code :


; Execute "/start_test ANYTHING" and then check that it keeps triggering more than 1 time the /check command, as it should only trigger that 1 time.

alias start_test {
  echo -s /start_test: $1

  var %md5 = $md5($1,0)

  .timer[ONE_ $+ %md5 $+ _TEST] 0 10 check $1

  sockclose test
  sockopen -e test google.com 443
}

alias check {
  echo -s /check: $1

  var %md5 = $md5($1,0)

  .timer[ONE_ $+ %md5 $+ _TEST] off

  if ($sock(test)) { .timer[ONE_ $+ %md5 $+ _TEST] 0 10 check $1 | cmd $1 status | return }

  echo -s Socket test is closed.
}

alias cmd { echo -a /cmd: $1 }

- Thanks!


Files

AdiIRC_2022-04-12_15-08-01.png (62.7 KB) AdiIRC_2022-04-12_15-08-01.png AdiIRC output (3 times /check called) westor (GR), 04/12/2022 02:11 PM
AdiIRC_2022-04-12_15-08-01.png (62.7 KB) AdiIRC_2022-04-12_15-08-01.png AdiIRC output (3 times /check called) westor (GR), 04/12/2022 02:12 PM
mirc_2022-04-12_15-09-30.png (12 KB) mirc_2022-04-12_15-09-30.png mIRC output (3 times /check called) westor (GR), 04/12/2022 02:13 PM
Actions

Also available in: Atom PDF