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