summary refs log tree commit diff stats
path: root/plugins/lua
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-04-27 14:53:36 -0400
committerPatrick Griffis <tingping@tingping.se>2016-04-27 14:55:04 -0400
commit823ef320a52e34dc090f7178b8a3d25913cf7480 (patch)
tree8303aec12ed52bfeb658d088e1bc56aa2e15a575 /plugins/lua
parentfe9da9314caa3d0b4b71131dd2ea31239918ed06 (diff)
lua: Use luaL_checkinteger
Diffstat (limited to 'plugins/lua')
-rw-r--r--plugins/lua/lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/lua/lua.c b/plugins/lua/lua.c
index 816ee2b5..b6f2465d 100644
--- a/plugins/lua/lua.c
+++ b/plugins/lua/lua.c
@@ -600,7 +600,7 @@ static int api_timer_closure(void *udata)
 
 static int api_hexchat_hook_timer(lua_State *L)
 {
-	int ref, timeout = luaL_checknumber(L, 1);
+	int ref, timeout = luaL_checkinteger (L, 1);
 	hook_info *info, **u;
 
 	lua_pushvalue(L, 2);
@@ -985,7 +985,7 @@ static int api_attrs_meta_newindex(lua_State *L)
 	char const *key = luaL_checkstring(L, 2);
 	if(!strcmp(key, "server_time_utc"))
 	{
-		attrs->server_time_utc = luaL_checknumber(L, 3);
+		attrs->server_time_utc = luaL_checkinteger(L, 3);
 		return 0;
 	}
 	else