diff --git a/modules/users/pages.js b/modules/users/pages.js index 2708fd8..4c6cf84 100644 --- a/modules/users/pages.js +++ b/modules/users/pages.js @@ -20,7 +20,7 @@ var pages = function(dbot) { '/users/:connection/:channel': function(req, res) { var connection = req.params.connection; - var channel = '#' + req.params.channel; + var channel = _.unescape(req.params.channel); var connections = dbot.instance.connections; if(connections.hasOwnProperty(connection) && diff --git a/views/users/channels.jade b/views/users/channels.jade index 6315ab6..bb3cac4 100644 --- a/views/users/channels.jade +++ b/views/users/channels.jade @@ -6,5 +6,5 @@ block content a(href='/connections') « Connection List ul#quotelist -each channel in channels - a(href='/users/'+connection+'/'+channel.substr(1,channel.length)) + a(href='/users/'+connection+'/'+encodeURIComponent(channel)) li.quotes #{channel}