View Single Post
04/27/15, 02:16 PM   #14
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
There are no function to get a textbuffer content

# mean sizeof(variable) , var must be an array. It's non recursive

if
Lua Code:
  1. local myarray = {1,2,3}

#myarray will be 3


(...) means arguments inherited from.

ex :

Lua Code:
  1. function mother(arg1, arg2, arg3)
  2.     daughter(arg1, arg2, arg3)
  3. end
  4.  
  5. function father(anotherarg)
  6.     daughter(anotherarg)
  7. end
  8.  
  9. function daughter(...)
  10.   -- do stuff
  11. 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:
  1. 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.
  Reply With Quote