sclemmer-robut 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/robut/room.rb +8 -1
- data/lib/robut/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18fbc5af5659289e45ccb6201b7224dc28ac2080
|
4
|
+
data.tar.gz: b0f718ca1281610ae47a511698945962363a4e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46a77111afb343a466168d43da2998918b57ded1c3c3c4628645b974ecd5927e9a7cce39c99958758e95b745af31e49336cd09dec686a90ae1c10fdc07565b61
|
7
|
+
data.tar.gz: a459c72e1b42cb800d3d6f6e2ce66321a7301d6152a8e5981a15939f43aef12bbc51b51348f38f9e8f5995ddc88d3ac6f5fdf8503936a935e79b4fc506a94302
|
data/lib/robut/room.rb
CHANGED
@@ -26,7 +26,14 @@ class Robut::Room < Robut::Presence
|
|
26
26
|
# Send +message+ to the room we're currently connected to
|
27
27
|
def reply(message, to)
|
28
28
|
msg = Jabber::Message.new(muc.room)
|
29
|
-
|
29
|
+
if message =~ /</
|
30
|
+
msg.xhtml_body = message
|
31
|
+
else
|
32
|
+
msg.body = message
|
33
|
+
end
|
34
|
+
$stderr.puts 'msg: %s' % msg.inspect
|
35
|
+
$stderr.puts 'msg.body: %s' % msg.body.inspect
|
36
|
+
$stderr.puts 'msg.xhtml_body: %s' % msg.xhtml_body.inspect
|
30
37
|
muc.send(msg)
|
31
38
|
end
|
32
39
|
end
|
data/lib/robut/version.rb
CHANGED