diff options
-rw-r--r-- | lib/rbot/core/utils/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index 1b6a0ce9..4a3a9c0a 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -466,7 +466,7 @@ module ::Irc end # output the symbol's irc-translated character, or a * if it's unknown - UNESCAPE_TABLE[symbol] || [symbol[/\d+/].to_i].pack("U") rescue '*' + UNESCAPE_TABLE[symbol] || (symbol.match(/^\d+$/) ? [$0.to_i].pack("U") : '*') } end end |