summaryrefslogtreecommitdiff
path: root/nsa
diff options
context:
space:
mode:
Diffstat (limited to 'nsa')
-rwxr-xr-xnsa7
1 files changed, 6 insertions, 1 deletions
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
}