diff --git a/lib/irc.rb b/lib/irc.rb index aa03b3c..758152c 100644 --- a/lib/irc.rb +++ b/lib/irc.rb @@ -13,6 +13,7 @@ def initialize bridge c.server = Config::IRC::SERVER c.port = Config::IRC::PORT c.channels = Config::IRC::CHANNELS + c.messages_per_second = Config::IRC::MESG_PER_SECOND end @bot.on :private, //, self do |m, irc| irc.received m, m.params[1] if m.command == "PRIVMSG" diff --git a/share/config.schema b/share/config.schema index 7a27150..f3fa8ea 100644 --- a/share/config.schema +++ b/share/config.schema @@ -5,6 +5,7 @@ module IRC CHANNELS ||= [] CMDPREFIX ||= "!" MSGFORMAT ||= "%{src} :: %{msg}" + MESG_PER_SECOND ||= 0.7 end module Server PATH ||= "/run/ircnotify/#{IRC::NICK}"