lib/flapjack/jabber.rb in flapjack-0.6.25 vs lib/flapjack/jabber.rb in flapjack-0.6.26
- old
+ new
@@ -31,10 +31,11 @@
# log.level = Logger::DEBUG
log.level = Logger::INFO
Blather.logger = log
def initialize
+ super
@buffer = []
@hostname = Socket.gethostname
end
def setup
@@ -101,9 +102,10 @@
end
end
return if @buffer.empty?
while stanza = @buffer.shift
@logger.debug("Sending a buffered jabber message to: #{stanza.to}, using: #{stanza.type}, message: #{stanza.body}")
+ write(stanza)
end
end
def interpreter(command)
msg = nil