17 lines
434 B
Lua
17 lines
434 B
Lua
|
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
|
||
|
|
||
|
function OnChat( Message, Player )
|
||
|
-- Lets get loggin'
|
||
|
LOGINFO("[" .. Player:GetName() .. "]: " .. Message);
|
||
|
|
||
|
return false
|
||
|
end
|