summaryrefslogblamecommitdiffstats
path: root/Plugins/SquirrelChatLog.nut
blob: df43c3fb33e9d7af80015843dd582e741aadfa1b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                     
  

                                     


                                                         
                 

                                         




                                           
                                 
                                                            
                 

          
class SquirrelChatLog extends Plugin
{
	name = "SquirrelChatLogger";
		
	function Initialize()
	{
		::print("SquirrelChatLog initialize()");
		
		this.AddHook(Hook.Chat);
		
		return true;
	}

	function OnChat( Message, Player )
	{
		::print("CHAT");
		::print(Player.GetName() + ": " + Message);
		
	}
}