summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-25 20:21:21 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-25 20:21:21 +0000
commit1843ac6771ac0db34f34c021c90d2a5d95f28839 (patch)
tree1823b3bc5856cb22dd383a39bca64334c51f7765 /lib
parentc9676b318a06e0d76874fbf19518504839458564 (diff)
Utils: convert unknown numering HTML entities to the corresponding UTF-8 characters, when not using htmlentities
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/utils/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index bbdd462b..ff02797e 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -426,7 +426,7 @@ module ::Irc
end
# output the symbol's irc-translated character, or a * if it's unknown
- UNESCAPE_TABLE[symbol] || '*'
+ UNESCAPE_TABLE[symbol] || [symbol[/\d+/].to_i].pack("U") rescue '*'
}
end
end