else:
c['status'].append(html.WebStatus(http_port=ini.get("status", "bind")))
+
+from buildbot.status import words
+
+if ini.has_option("irc", "host") and ini.has_option("irc", "nickname") and ini.has_option("irc", "channel"):
+ irc_host = ini.get("irc", "host")
+ irc_port = 6667
+ irc_chan = ini.get("irc", "channel")
+ irc_nick = ini.get("irc", "nickname")
+ irc_pass = None
+
+ if ini.has_option("irc", "port"):
+ irc_port = ini.getint("irc", "port")
+
+ if ini.has_option("irc", "password"):
+ irc_pass = ini.get("irc", "password")
+
+ irc = words.IRC(irc_host, irc_nick, port = irc_port, password = irc_pass,
+ channels = [{ "channel": irc_chan }],
+ notify_events = {
+ 'exception': 1,
+ 'successToFailure': 1,
+ 'failureToSuccess': 1
+ }
+ )
+
+ c['status'].append(irc)
+
+
####### PROJECT IDENTITY
# the 'title' string will appear at the top of this buildbot