summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-06-21 10:10:35 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-06-21 10:10:35 -0400
commit63e7e0b35dff15a2e06b924945dbb09389723686 (patch)
tree537801f9815be9d173d91adbb1fdb65be9e9d0b5 /indra
parent5dbca6bb3ed33cb8f19ea3871ce7ef9f07957088 (diff)
Use util.classctor(LLChatListener).
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/scripts/lua/require/LLChatListener.lua3
-rw-r--r--indra/newview/scripts/lua/test_LLChatListener.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/scripts/lua/require/LLChatListener.lua b/indra/newview/scripts/lua/require/LLChatListener.lua
index b4e90d272c..428dca881e 100644
--- a/indra/newview/scripts/lua/require/LLChatListener.lua
+++ b/indra/newview/scripts/lua/require/LLChatListener.lua
@@ -1,6 +1,7 @@
local fiber = require 'fiber'
local inspect = require 'inspect'
local leap = require 'leap'
+local util = require 'util'
local LLChatListener = {}
local waitfor = {}
@@ -14,6 +15,8 @@ function LLChatListener:new()
return obj
end
+util.classctor(LLChatListener)
+
function LLChatListener:handleMessages(event_data)
print(inspect(event_data))
return true
diff --git a/indra/newview/scripts/lua/test_LLChatListener.lua b/indra/newview/scripts/lua/test_LLChatListener.lua
index b9696e7cfc..18363ed43b 100644
--- a/indra/newview/scripts/lua/test_LLChatListener.lua
+++ b/indra/newview/scripts/lua/test_LLChatListener.lua
@@ -11,7 +11,7 @@ function openOrEcho(message)
end
end
-local listener = LLChatListener:new()
+local listener = LLChatListener()
function listener:handleMessages(event_data)
if string.find(event_data.message, '[LUA]') then