mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Modified syntax as per suggestion
This commit is contained in:
parent
b3ccedc34a
commit
fe87534dd9
1 changed files with 2 additions and 6 deletions
|
@ -80,13 +80,9 @@ class LogStash::Outputs::Irc < LogStash::Outputs::Base
|
|||
text = event.sprintf(@format)
|
||||
@bot.channels.each do |channel|
|
||||
@logger.debug("Sending to...", :channel => channel, :text => text)
|
||||
if !@pre_string.nil?
|
||||
channel.msg(pre_string)
|
||||
end
|
||||
channel.msg(pre_string) if !@pre_string.nil?
|
||||
channel.msg(text)
|
||||
if !@post_string.nil?
|
||||
channel.msg(post_string)
|
||||
end
|
||||
channel.msg(post_string) if !@post_string.nil?
|
||||
end # channels.each
|
||||
end # def receive
|
||||
end # class LogStash::Outputs::Irc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue