Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/services/sockethub-irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ export default class SockethubIrcService extends Service {

this.log('irc', 'connecting to IRC network...');

this.sockethubClient.socket.emit('credentials', credentialsJob, (err) => {
if (err) { this.log('failed to store credentials: ', err); }
this.sockethubClient.socket.emit('credentials', credentialsJob, (msg) => {
const error = (msg && typeof msg === 'object') ? msg.error : msg;
if (error) { this.log('failed to store credentials: ', error); }
});

this.sockethubClient.socket.emit('message', connectJob, (message) => {
Expand Down
Loading