Permalink
Browse files

Linkify topic URLs.

  • Loading branch information...
1 parent 6158f96 commit 6ce8c45370568e8b19b280950184d98d96b31988 @ericbarch ericbarch committed Jul 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 assets/js/client.js
View
@@ -88,7 +88,7 @@ $(function() {
var channelTabs = irc.appView.channelList.channelTabs;
var channelTab = channelTabs[channelTabs.length-1];
channel.set({
- topic: value['topic'],
+ topic: utils.linkify(value['topic']),
unread: value['unread_messages'],
unreadMentions: value['unread_mentions']
});
@@ -223,8 +223,8 @@ $(function() {
irc.socket.on('topic', function(data) {
var channel = irc.chatWindows.getByName(data.channel.toLowerCase());
- channel.set({topic: data.topic});
- var topicMessage = new Message({type: 'topic', nick: data.nick, topic: data.topic});
+ channel.set({topic: utils.linkify(data.topic)});
+ var topicMessage = new Message({type: 'topic', nick: data.nick, topic: utils.linkify(data.topic)});
channel.stream.add(topicMessage);
});

0 comments on commit 6ce8c45

Please sign in to comment.