Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set correct nick received from "registered"

  • Loading branch information...
commit a79e807f9fe855ebbe906b424f51cc7adb27db9a 1 parent 7c9b549
Pablo Villalba authored
Showing with 9 additions and 1 deletion.
  1. +5 −0 js/core/client.js
  2. +4 −1 js/plugins/recent_messages.js
5 js/core/client.js
View
@@ -33,6 +33,11 @@
Talker.client.trigger("connect");
});
+ // Connect to server, and request IRC connection
+ socket.on('registered', function (e) {
+ Talker.client.nick = e.nick;
+ });
+
socket.on('ready', function () {
socket.emit('init', { nick: nick, channel: channel });
});
5 js/plugins/recent_messages.js
View
@@ -20,7 +20,9 @@
}
// Remove loading message
- $(".log p.loading").remove();
+ $(".log p.status.loading").remove();
+
+ // TODO: Insert replayed messages where the "loading" message is
// Replay all messages
_(e.messages).each(function (message) {
@@ -38,6 +40,7 @@
Talker.client.trigger("part", message.data);
}
});
+
});
Please sign in to comment.
Something went wrong with that request. Please try again.