# File lib/rbot/ircbot.rb, line 768 def set_default_send_options(opts={}) # Default send options for NOTICE and PRIVMSG unless defined? @default_send_options @default_send_options = { :queue_channel => nil, # use default queue channel :queue_ring => nil, # use default queue ring :newlines => :split, # or :join :join_with => ' ', # by default, use a single space :max_lines => 0, # maximum number of lines to send with a single command :overlong => :split, # or :truncate # TODO an array of splitpoints would be preferrable for this option: :split_at => /\s+/, # by default, split overlong lines at whitespace :purge_split => true, # should the split string be removed? :truncate_text => "#{Reverse}...#{Reverse}" # text to be appened when truncating } end @default_send_options.update opts unless opts.empty? end