<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -36,7 +36,6 @@ $channel    = &quot;&quot;;    /* The channel you want to join.      */
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */
 
-// define your variables
 $host = &quot;irc.freenode.net&quot;;
 $port=6667;
 $ident=&quot;Karere Client&quot;;
@@ -48,6 +47,7 @@ $ident=&quot;Karere Client&quot;;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */
 $readbuffer=&quot;&quot;;
+$send = &quot;yes&quot;;
 $nope = &quot;false&quot;;
 $start = time();
 set_time_limit(0);
@@ -103,7 +103,8 @@ while (!feof($fp))
       $where = strpos($line, &quot;:&quot;);
       $msg = substr($line, $where);
       $header = &quot;From: Karere &lt;&quot;.$reader.&quot;&gt;\r\n&quot;;
-      mail($sendTo, $parts[2], $who . &quot; in &quot; . $parts[2] . &quot; said &quot; . $msg, $header);
+      if ($send == &quot;yes&quot;)
+        mail($sendTo, $parts[2], $who . &quot; in &quot; . $parts[2] . &quot; said &quot; . $msg, $header);
     }
 
     /* The server will send PING requests on occasion.   */
@@ -153,7 +154,17 @@ while (!feof($fp))
 
           /* Send the message to the channel */
           echo $subject . &quot;\n&quot; . $body . &quot;\n&quot;;
-          fwrite($fp, &quot;PRIVMSG &quot;.$subject.&quot; :&quot;.$body.&quot;\r\n&quot;);
+
+          if ($subject != &quot;@off&quot; &amp;&amp; $subject != &quot;&amp;on&quot;)
+            fwrite($fp, &quot;PRIVMSG &quot;.$subject.&quot; :&quot;.$body.&quot;\r\n&quot;);
+          if ($subject == &quot;@off&quot;)
+          {
+            $send = &quot;no&quot;;
+          }
+          if ($subject == &quot;@on&quot;)
+          {
+            $send = &quot;yes&quot;;
+          }
           imap_delete($mbox, $i);
         }
       }</diff>
      <filename>irc/karere.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5361801bb5edc220a247e28713aef59c19aba558</id>
    </parent>
  </parents>
  <author>
    <name>Charles Childers</name>
    <email>crc@retroforth.org</email>
  </author>
  <url>http://github.com/crcx/karere/commit/ee265f5d35d1c0b3792046d7be37005ac7c01de1</url>
  <id>ee265f5d35d1c0b3792046d7be37005ac7c01de1</id>
  <committed-date>2009-06-30T06:02:00-07:00</committed-date>
  <authored-date>2009-06-30T06:02:00-07:00</authored-date>
  <message>add @on and @off to irc client</message>
  <tree>1ce3338386e69d68837dd3b8e1f4bb8e8e01ccdf</tree>
  <committer>
    <name>Charles Childers</name>
    <email>crc@retroforth.org</email>
  </committer>
</commit>
