2012-07-08 21:01:08 +00:00
|
|
|
class SquirrelChatLog extends Plugin
|
2011-11-08 01:25:01 +00:00
|
|
|
{
|
2012-07-08 21:01:08 +00:00
|
|
|
name = "SquirrelChatLogger";
|
|
|
|
|
2011-11-08 01:25:01 +00:00
|
|
|
function Initialize()
|
|
|
|
{
|
|
|
|
::print("SquirrelChatLog initialize()");
|
|
|
|
|
2012-07-08 21:01:08 +00:00
|
|
|
this.AddHook(Hook.Chat);
|
|
|
|
|
2011-11-08 01:25:01 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
function OnChat( Message, Player )
|
|
|
|
{
|
2012-07-08 21:01:08 +00:00
|
|
|
::print("CHAT");
|
2011-11-08 01:25:01 +00:00
|
|
|
::print(Player.GetName() + ": " + Message);
|
2012-07-08 21:01:08 +00:00
|
|
|
|
2011-11-08 01:25:01 +00:00
|
|
|
}
|
|
|
|
}
|