summaryrefslogtreecommitdiffstats
path: root/Plugins/SquirrelChatLog.nut
blob: df43c3fb33e9d7af80015843dd582e741aadfa1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
		
	}
}