@@ -18,6 +18,7 @@ port = 6667
channel = #example-channel
nickname = example-builder
password = example
+notice = True
[repo]
url = https://git.lede-project.org/source.git
@@ -803,6 +803,7 @@ if ini.has_option("irc", "host") and ini.has_option("irc", "nickname") and ini.h
irc_chan = ini.get("irc", "channel")
irc_nick = ini.get("irc", "nickname")
irc_pass = None
+ irc_notice = False
if ini.has_option("irc", "port"):
irc_port = ini.getint("irc", "port")
@@ -810,13 +811,17 @@ if ini.has_option("irc", "host") and ini.has_option("irc", "nickname") and ini.h
if ini.has_option("irc", "password"):
irc_pass = ini.get("irc", "password")
+ if ini.has_option("irc", "notice")
+ irc_notice = ini.getboolean("irc", "notice")
+
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
- }
+ },
+ noticeOnChannel=irc_notice
)
c['status'].append(irc)