1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- a/src/perl/common/Core.xs
+++ b/src/perl/common/Core.xs
@@ -237,12 +237,7 @@ timeout_add(msecs, func, data)
SV *func
SV *data
CODE:
- if (msecs < 10) {
- croak("Irssi::timeout() : msecs must be >= 10");
- RETVAL = -1;
- } else {
- RETVAL = perl_timeout_add(msecs, func, data, FALSE);
- }
+ RETVAL = perl_timeout_add(msecs, func, data, FALSE);
OUTPUT:
RETVAL
@@ -252,12 +247,7 @@ timeout_add_once(msecs, func, data)
SV *func
SV *data
CODE:
- if (msecs < 10) {
- croak("Irssi::timeout_once() : msecs must be >= 10");
- RETVAL = -1;
- } else {
- RETVAL = perl_timeout_add(msecs, func, data, TRUE);
- }
+ RETVAL = perl_timeout_add(msecs, func, data, TRUE);
OUTPUT:
RETVAL
|