lib/saber/client.rb in saber-0.0.6 vs lib/saber/client.rb in saber-0.0.7
- old
+ new
@@ -25,11 +25,11 @@
client.add_message_callback { |msg|
pd msg.from.bare
if msg.from.bare == Rc.server.xmpp.jid
files = msg.body.split("\n")
- $log.debug "::recv::\n #{files.join("\n")}"
+ $log.debug "RECV #{files}"
downloader.add *files
end
}
client.send Jabber::Presence.new
@@ -49,10 +49,10 @@
@server = DRbObject.new_with_uri(Rc.drb_uri)
Saber.ui.say ">> DRbClient connected to #{Rc.drb_uri}"
end
def add(*names)
- Saber.ui.say "::add::\n#{names.join("\n")}"
+ Saber.ui.say "ADD #{names}"
server.add(*names)
end
end
end