MINOR: hlua/event_hdl: expose proxy_uuid variable in server events
Adding proxy_uuid to ServerEvent class.
proxy_uuid contains the uuid of the proxy to which the server belongs
diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst
index f25f9dc..1bb4997 100644
--- a/doc/lua-api/index.rst
+++ b/doc/lua-api/index.rst
@@ -1405,6 +1405,10 @@
Contains the name of the proxy to which the server belongs
+.. js:attribute:: ServerEvent.proxy_uuid
+
+ Contains the uuid of the proxy to which the server belongs
+
.. js:attribute:: ServerEvent.reference
Reference to the live server (A :ref:`server_class`).
diff --git a/src/hlua.c b/src/hlua.c
index e6856c8..747e6e8 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -9059,6 +9059,10 @@
lua_pushstring(hlua->T, "proxy_name");
lua_pushstring(hlua->T, e_server->safe.proxy_name);
lua_settable(hlua->T, -3);
+ /* Add server proxy uuid */
+ lua_pushstring(hlua->T, "proxy_uuid");
+ lua_pushinteger(hlua->T, e_server->safe.proxy_uuid);
+ lua_settable(hlua->T, -3);
/* attempt to provide reference server object
* (if it wasn't removed yet, SERVER_DEL will never succeed here)