2012-02-22 10:57:45 -05:00
|
|
|
function Initialize( Plugin )
|
|
|
|
Plugin:SetName( "ChatLog" )
|
|
|
|
Plugin:SetVersion( 2 )
|
|
|
|
|
|
|
|
PluginManager = cRoot:Get():GetPluginManager()
|
|
|
|
PluginManager:AddHook( Plugin, cPluginManager.E_PLUGIN_CHAT )
|
|
|
|
|
|
|
|
LOG( "Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() )
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
2012-10-11 10:58:41 -04:00
|
|
|
function OnChat( Player, Message )
|
2012-02-22 10:57:45 -05:00
|
|
|
-- Lets get loggin'
|
|
|
|
LOGINFO("[" .. Player:GetName() .. "]: " .. Message);
|
|
|
|
|
|
|
|
return false
|
|
|
|
end
|