mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
join room during register
This commit is contained in:
parent
4d7d2b5895
commit
b3024c9367
1 changed files with 1 additions and 1 deletions
|
@ -24,12 +24,12 @@ class LogStash::Inputs::Xmpp < LogStash::Inputs::Base
|
|||
if @room
|
||||
require 'xmpp4r/muc/helper/simplemucclient'
|
||||
@muc = Jabber::MUC::SimpleMUCClient.new(@cl)
|
||||
@muc.join("#{@room}")
|
||||
end
|
||||
end # def register
|
||||
|
||||
def run(queue)
|
||||
if @room
|
||||
@muc.join("#{@room}")
|
||||
@muc.on_message { |time,from,body|
|
||||
e = to_event(body, from)
|
||||
if e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue