Various works in progress.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3376 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2017-01-11 02:14:22 +00:00
parent 15f3a3351e
commit 63361ec1f8
3 changed files with 29 additions and 14 deletions

View File

@ -32,6 +32,7 @@ class IrcService {
self._service = new ChatService(options.callback);
self._name = options.name;
self._nick = options.nick;
self._autoJoinChannels = options.autoJoinChannels;
self._nameReplies = {};
network.newConnection().then(function(socket) {
@ -103,6 +104,10 @@ class IrcService {
for (let i in conversations) {
this._service.notifyPresenceChanged(conversations[i], person, "unavailable");
}
} else if (parts[0] == "001") { // RPL_WELCOME
if (this._autoJoinChannels) {
this._send("JOIN " + this._autoJoinChannels);
}
} else if (parts[0] == "353") { // RPL_NAMREPLY
if (!this._nameReplies[parts[3]]) {
this._nameReplies[parts[3]] = [];