summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.sample1
-rwxr-xr-xnsa7
2 files changed, 7 insertions, 1 deletions
diff --git a/config.sample b/config.sample
index 5fb761e..83754a0 100644
--- a/config.sample
+++ b/config.sample
@@ -11,5 +11,6 @@
projects:
'oftc': [ '#oftc' ]
'weasel': [ 'weasel' ]
+ 'tor': [ 'NOTICE:#tor' ]
'*': [ '#commits' ]
# vim:syn=yaml
diff --git a/nsa b/nsa
index d9cd333..cd7a2cd 100755
--- a/nsa
+++ b/nsa
@@ -398,7 +398,12 @@ while (1) do
line = pr + line
channellist = CONFIG['projects'].has_key?(project) ? CONFIG['projects'][project] : CONFIG['projects']['*']
channellist.each do |c|
- bot.print "PRIVMSG #{c} :#{line}"
+ m = /^NOTICE:(.*)/.match c
+ if m
+ bot.print "NOTICE #{m[1]} :#{line}"
+ else
+ bot.print "PRIVMSG #{c} :#{line}"
+ end
end
end
}