signal: Make non-existing signals non-fatal
This function is also called from unprotected C contexts and there shouldn't be any reason why this really has to be fatal. A warning makes you lose less sessions. ;) Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
ab4c151ed8
commit
2732475403
|
@ -269,7 +269,7 @@ luaA_object_emit_signal(lua_State *L, int oud,
|
|||
luaA_dofunction(L, nargs + 1, 0);
|
||||
}
|
||||
} else
|
||||
luaL_error(L, "Trying to emit unknown signal '%s'", name);
|
||||
warn("Trying to emit unknown signal '%s'", name);
|
||||
|
||||
/* Then emit signal on the class */
|
||||
lua_pushvalue(L, oud);
|
||||
|
|
Loading…
Reference in New Issue