Skip to content

Instantly share code, notes, and snippets.

@benphelps
Created April 27, 2011 03:32
Show Gist options
  • Save benphelps/943670 to your computer and use it in GitHub Desktop.
Save benphelps/943670 to your computer and use it in GitHub Desktop.
function ChatLogPlugin:Initialize()
self:SetName( "ChatLog" )
self:SetVersion( 1 )
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook( self, cPluginManager.E_PLUGIN_CHAT )
self.Logger = cMCLogger:new_local("ChatLog"..GetTime()..".txt")
self.Logger:LogSimple("--- ChatLog started ---", 1);
Log( "Initialized " .. self:GetName() .. " v." .. self:GetVersion() )
return true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment