Feature - Implemented Pass events to chatbotScripts

slyz

Developer
There was a thread a while back that touched the subject, but the discussion stalled. I think it would be a nice feature.

I guess something like
Code:
sender: ""
message: event message with all the HTML removed
channel: "Events"
would do.

I hacked a little something in the patch posted here, but since I don't really know how things should happen in ChatManager, I'd rather Grotfang, Hola or Veracity have a look before committing.

With the patch and the following chatbotScript, here is what I get:
PHP:
void main( string sender, string message, string channel )
{
	print( "" );
	print( "sender: " + sender );
	print( "message: " + message );
	print( "channel: " + channel );
}
Code:
sender:
message: slyz has busted out your Newbiesport™ tent's window pane with a brick.
channel: Events
 

Attachments

  • chat_events.patch
    582 bytes · Views: 37
Top