API

The integration for sChat is quite unique. Once you tell sChat you want to be notified when someone chats, you DO NOT need to do it again.

If you request the informer and it finds you already requested one, the plugin will get a return value of 0. On success, it will return 1. You must create 2 methods with a name of your choice in a class of your choice. Both methods must have the same name. The first method is for all non pm chats, and the second for pm/whispers. sChat will call the method specified by each plugin with the given information depending on the type of chat. You can then use the information as you wish.

Usage here.