From 1843ac6771ac0db34f34c021c90d2a5d95f28839 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 25 Mar 2007 20:21:21 +0000 Subject: Utils: convert unknown numering HTML entities to the corresponding UTF-8 characters, when not using htmlentities --- lib/rbot/core/utils/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') 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 -- cgit v1.2.3