luaA_object_emit_signal: Fix a crash on non-objects
commita8fa910586ca1792ba187ab6f4aad20947712c14
authorUli Schlachter <psychon@znc.in>
Wed, 4 Jan 2012 16:09:52 +0000 (4 17:09 +0100)
committerUli Schlachter <psychon@znc.in>
Wed, 4 Jan 2012 16:09:52 +0000 (4 17:09 +0100)
tree322fc4b775ca222367b9c726d0a99e6653956e04
parent3b08f0d73a859574b78cf2de7a617f32fa29c7c2
luaA_object_emit_signal: Fix a crash on non-objects

This was first fixed in 79b1f5aba1de, but 3fbb5f15 reintroduced the crash. The
only "real" change in here is that there is now a "return;" after the
warn("Trying...");. The rest is just re-indentation.

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