<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,6 @@ require 'twitter'
 require 'activesupport'
 require 'lib/irc_numconst'
 
-$debug = true
 $servername = &quot;twitter.irc&quot;
 
 module TwitRC
@@ -13,7 +12,7 @@ module TwitRC
 
   def send_data(data)
     super
-    puts &quot;&lt;&lt; %s&quot; % data if $debug
+    puts &quot;&lt;&lt; %s&quot; % data if $DEBUG
   end
 
   def receive_data(data)
@@ -21,7 +20,7 @@ module TwitRC
   end
 
   def process_data(data)
-    puts &quot;&gt;&gt; %s&quot; % data if $debug
+    puts &quot;&gt;&gt; %s&quot; % data if $DEBUG
     # we assume that if there is no leading colon here, we're dealing with a command and call a method
     if data =~ /^:{0}/ then
       self.send(&quot;irc_%s&quot;%data.match(/^(.*?) (.*)$/)[1].downcase,$2)
@@ -51,9 +50,9 @@ module TwitRC
       begin
         shrink = open(&quot;http://tweetshrink.com/shrink?format=string&amp;text=#{CGI::escape(tweet)}&quot;).read
         privmsg &quot;twitter&quot;, &quot;#{@nickname}: perhaps try \&quot;#{shrink}\&quot; (#{shrink.length} characters)&quot;, &quot;#twitter&quot; if shrink.length &amp;&amp; shrink.length &lt;= 140
-        puts &quot;*** attempted to tweetshrink, got back #{shrink} (#{shrink.length} characters)&quot; if $debug
+        puts &quot;*** attempted to tweetshrink, got back #{shrink} (#{shrink.length} characters)&quot; if $DEBUG
       rescue
-        puts &quot;*** attempted to tweetshrink tweet, but failed&quot; if $debug
+        puts &quot;*** attempted to tweetshrink tweet, but failed&quot; if $DEBUG
       end
     end
   end
@@ -82,7 +81,7 @@ module TwitRC
 
   def method_missing(id, *args)
     puts &quot;*** this feature is currently unsupported (#{id})&quot;
-    pp args
+    pp args if $DEBUG
   end
 
   def privmsg(sender, message, channel=nil)</diff>
      <filename>twirc.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6814b230f54b0c7ffc2e32352a72789a43e201c0</id>
    </parent>
  </parents>
  <author>
    <name>Simon Rozet</name>
    <email>simon@rozet.name</email>
  </author>
  <url>http://github.com/Syd/twitrc/commit/b1e08002567988294a573617438184c0b6a0e98e</url>
  <id>b1e08002567988294a573617438184c0b6a0e98e</id>
  <committed-date>2009-05-08T18:11:26-07:00</committed-date>
  <authored-date>2009-05-08T15:36:29-07:00</authored-date>
  <message>Use ruby's built-in debug flag

Signed-off-by: Scott Wisely &lt;syd@scrimfind.org&gt;</message>
  <tree>d4c5ab2d8d122ee716a86622dfd08017fd3875fc</tree>
  <committer>
    <name>Scott Wisely</name>
    <email>syd@scrimfind.org</email>
  </committer>
</commit>
