diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-26 20:00:50 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-26 20:00:50 +0100 |
commit | f126daa896f18c25f8c4d4d9c24b33cdab2bed4e (patch) | |
tree | 8e182533fd9ea358532daa440fdd65264c687be4 /src/core/wee-hook.c | |
parent | b5730ec025f680fd8c5331d8e813cfbf38330303 (diff) | |
download | weechat-f126daa896f18c25f8c4d4d9c24b33cdab2bed4e.zip |
Fix option irc.network.away_check
Diffstat (limited to 'src/core/wee-hook.c')
-rw-r--r-- | src/core/wee-hook.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 0de375a52..e872f67c4 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -522,6 +522,9 @@ hook_timer (struct t_weechat_plugin *plugin, long interval, int align_second, struct t_hook_timer *new_hook_timer; struct timezone tz; + if (interval <= 0) + return NULL; + new_hook = malloc (sizeof (*new_hook)); if (!new_hook) return NULL; |