<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Friday, August 10, 2007, 1:05 AM -->
<!-- MuClient version 4.08 -->

<!-- Plugin "DailyLog" generated by Plugin Wizard -->

<muclient>
<plugin
   name="DailyLog"
   author="Malix@8bit"
   id="36ef58963eb1bbfb9cb38bf8"
   language="JScript"
   purpose="Restarts the logfile at midnight"
   date_written="2007-08-10 01:04:40"
   requires="3.51"
   version="1.0"
   >
<description trim="y">
<![CDATA[
This plugin will close and reopen the world's logfile at midnight, you /must/ have a logging filename with date substitions set in the world preferences. The plugin will do the rest.
]]>
</description>

</plugin>


<!--  Aliases  -->

<aliases>
  <alias
   script="RestartLogging"
   match="RestartLogging"
   enabled="y"
   omit_from_log="y"
   omit_from_output="y"
   sequence="100"
  >
  </alias>
</aliases>

<!--  Timers  -->

<timers>
  <timer enabled="y"    send_to="10"
at_time="y" omit_from_output="y" omit_from_log="y" >
  <send>RestartLogging</send>

  </timer>
</timers>

<!--  Script  -->


<script>
<![CDATA[
function RestartLogging() {
	if ( world.IsLogOpen() ) {
		world.CloseLog();
		world.OpenLog("",0);
		world.Note("Restarting Log File.");
	}
}

]]>
</script>


<!--  Plugin help  -->

<aliases>
  <alias
   script="OnHelp"
   match="DailyLog:help"
   enabled="y"
  >
  </alias>
</aliases>

<script>
<![CDATA[
function OnHelp (sName, sLine, wildcards)
  {
  world.Note (world.GetPluginInfo (world.GetPluginID, 3));
  }
]]>
</script> 

</muclient>
