diff options
-rw-r--r-- | config.sample | 1 | ||||
-rwxr-xr-x | nsa | 7 |
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 @@ -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 } |