Don't use luaL_error in luaA_object_emit_signal (FS#713)
commit79b1f5aba1def082f6f8791df10df170e134107c
authorUli Schlachter <psychon@znc.in>
Sat, 11 Dec 2010 12:48:31 +0000 (11 13:48 +0100)
committerUli Schlachter <psychon@znc.in>
Sat, 11 Dec 2010 12:48:31 +0000 (11 13:48 +0100)
tree94e412ccbfd67c0a1c84f64b4aa806412bc5f088
parent22a5137299878887d547830815f372edd317106c
Don't use luaL_error in luaA_object_emit_signal (FS#713)

This function can be called from unprotected contexts. Calling luaL_error() in
this case results in a call to luaA_panic() and awesome dies.

The only real change here is that this now calls warn() instead of luaL_error().
The rest is reindentation because warn() returns while luaL_error() didn't.

Signed-off-by: Uli Schlachter <psychon@znc.in>
common/luaobject.c