There are no function to get a textbuffer content
# mean sizeof(variable) , var must be an array. It's non recursive
if
#myarray will be 3
(...) means arguments inherited from.
ex :
Lua Code:
function mother(arg1, arg2, arg3)
daughter(arg1, arg2, arg3)
end
function father(anotherarg)
daughter(anotherarg)
end
function daughter(...)
-- do stuff
end
here ... will be arg1, arg2, arg3 when called from mother, it will be anotherarg when called from father.
I see the function that allowed us to send chat messages is now protected, is that what all the bot spammers were using?
|
Not really.
I'm trying to figure out how to read the contents of the chat buffer so I can look for specific strings but I'm not seeing where its stored or how to access it.
|
You need to listen to
Lua Code:
EVENT_CHAT_MESSAGE_CHANNEL (integer eventCode, integer messageType, string fromName, string text, bool isCustomerService)
You can't read chat buffer, you need to catch them when messages comes.