<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -353,12 +353,12 @@ class Contact:
         if prevBuild:
             prevResult = prevBuild.getResults()
 
-            event = join((lower(self.results_descriptions.get(prevResult)), \
-                              'To', \
-                              capitalize(self.results_descriptions.get(results))), \
-                             '')
+            required_notification_control_string = join((lower(self.results_descriptions.get(prevResult)), \
+                                                             'To', \
+                                                             capitalize(self.results_descriptions.get(results))), \
+                                                            '')
 
-            if (self.notify_for(event)):
+            if (self.notify_for(required_notification_control_string)):
                 return True
 
         return False
@@ -587,11 +587,8 @@ class IRCContact(Contact):
         # username.
         self.dest = dest
 
-    def onChannel(self):
-        return self.dest[0] == '#'
-
     def describeUser(self, user):
-        if self.onChannel():
+        if self.dest[0] == '#':
             return &quot;IRC user &lt;%s&gt; on channel %s&quot; % (user, self.dest)
         return &quot;IRC user &lt;%s&gt; (privmsg)&quot; % user
 </diff>
      <filename>buildbot/status/words.py</filename>
    </modified>
    <modified>
      <diff>@@ -1660,14 +1660,6 @@ class IrcStatusBotTester(unittest.TestCase):
         channel.msgOrNotice('#here', 'hello')
         self.failUnlessEqual(channel.message, ['notice', '#here', 'hello'])
 
-class IRCContactTester(unittest.TestCase):
-    def testOnChannel(self):
-        contact = words.IRCContact(MyChannel(), 'alice')
-        self.failUnlessEqual(contact.onChannel(), False)
-
-        contact = words.IRCContact(MyChannel(), '#somewhere')
-        self.failUnlessEqual(contact.onChannel(), True)
-
 class StepStatistics(unittest.TestCase):
     def testStepStatistics(self):
         status = builder.BuildStatus(builder.BuilderStatus(&quot;test&quot;), 123)</diff>
      <filename>buildbot/test/test_status.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>95f7a0e4f86c9052236e195ead6346545db778fd</id>
    </parent>
  </parents>
  <author>
    <name>KATO Kazuyoshi</name>
    <email>kzys@8-p.info</email>
  </author>
  <url>http://github.com/kzys/buildbot/commit/1d591e945dfc518a2b547d387344cb539041787b</url>
  <id>1d591e945dfc518a2b547d387344cb539041787b</id>
  <committed-date>2009-10-21T06:08:18-07:00</committed-date>
  <authored-date>2009-10-21T06:08:18-07:00</authored-date>
  <message>Revert misc changes.</message>
  <tree>918a9a4e794cc7dde3d79b725ba1184780577ee6</tree>
  <committer>
    <name>KATO Kazuyoshi</name>
    <email>kzys@8-p.info</email>
  </committer>
</commit>
