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:
Uli Schlachter 2010-08-26 16:29:36 +02:00
parent ab4c151ed8
commit 2732475403
1 changed files with 1 additions and 1 deletions

View File

@ -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);