From 059668b706a66353e2907c721814b0d0f424c05e Mon Sep 17 00:00:00 2001
From: Sulverus <sulverus@gmail.com>
Date: Tue, 26 May 2015 12:08:38 +0300
Subject: [PATCH] Return only lua functions

---
 src/lua/trigger.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/trigger.cc b/src/lua/trigger.cc
index fb05ba1b4a..6d0f99ba0f 100644
--- a/src/lua/trigger.cc
+++ b/src/lua/trigger.cc
@@ -66,7 +66,7 @@ lbox_list_all_triggers(struct lua_State *L, struct rlist *list)
 	lua_newtable(L);
 	rlist_foreach_entry_reverse(trigger, list, link) {
 		lua_rawgeti(L, LUA_REGISTRYINDEX, (intptr_t) trigger->data);
-		if (lua_isfunction(L, -1)) {
+		if (lua_isfunction(L, -1) && !lua_iscfunction(L, -1)) {
 			lua_rawseti(L, -2, count);
 			count++;
 		} else {
-- 
GitLab