<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, August 11, 2007, 11:52 PM -->
<!-- MuClient version 4.08 -->

<!-- Plugin "WeeklyLog" generated by Plugin Wizard -->

<muclient>
<plugin
   name="WeeklyLog"
   author="Malix@8bitMUSH"
   id="f93bc5266fee0e751c788a2d"
   language="JScript"
   purpose="Restarts a new log file once a week at midnight."
   date_written="2007-08-11 23:52:09"
   requires="3.51"
   version="1.0"
   >

</plugin>


<!--  Timers  -->

<timers>
  <timer script="RestartLogging" enabled="y"    send_to="10"
at_time="y" omit_from_output="y" omit_from_log="y" >

  </timer>
</timers>

<!--  Script  -->


<script>
<![CDATA[
function RestartLogging() {
	var d = new Date();
	// sunday = 0, monday=1, tuesday=2, wednesday=3, thursday=4, friday=5, saturday=6
	if ( d.getDay() == 0 ) {
		if ( world.IsLogOpen() ) {
			world.CloseLog();
			world.OpenLog("",0);
			world.Note("Restarting Log File.");
		}
	}
}

]]>
</script>


</muclient>
