diff --git a/plugins/RSS/config.py b/plugins/RSS/config.py index 47ac92f59..28bcad79e 100644 --- a/plugins/RSS/config.py +++ b/plugins/RSS/config.py @@ -90,6 +90,9 @@ conf.registerGlobalValue(RSS, 'sortFeedItems', FeedItemSortOrder('asInFeed', _("""Determines whether feed items should be sorted by their publication/update timestamp or kept in the same order as they appear in a feed."""))) +conf.registerChannelValue(RSS, 'notice', + registry.Boolean(False, _("""Determines whether announces will be sent + as notices instead of privmsgs."""))) #################### # Headlines filtering diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index b5ee7365c..9c782c363 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -404,7 +404,11 @@ class RSS(callbacks.Plugin): def announce_entry(self, irc, channel, feed, entry): if self.should_send_entry(channel, entry): s = self.format_entry(channel, feed, entry, True) - irc.queueMsg(ircmsgs.privmsg(channel, s)) + if self.registryValue('notice', channel): + m = ircmsgs.notice(channel, s) + else: + m = ircmsgs.privmsg(channel, s) + irc.queueMsg(m) ##########