forked from cory/tildefriends
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:
@ -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]] = [];
|
||||
|
Reference in New Issue
Block a user