mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Irssi::timeout_add() - don't allow smaller values than 10
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2658 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
aa5934ade3
commit
61e8c12bb5
@ -136,7 +136,12 @@ timeout_add(msecs, func, data)
|
||||
SV *func
|
||||
SV *data
|
||||
CODE:
|
||||
RETVAL = perl_timeout_add(msecs, func, data);
|
||||
if (msecs < 10) {
|
||||
croak("Irssi::timeout() : msecs must be >= 10");
|
||||
RETVAL = -1;
|
||||
} else {
|
||||
RETVAL = perl_timeout_add(msecs, func, data);
|
||||
}
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user