Skip to content

Commit

Permalink
Merge pull request #49 from JorgenPhi/master
Browse files Browse the repository at this point in the history
Fix bug with room PW and increase IRC stability
  • Loading branch information
nuclearace committed May 1, 2015
2 parents e2d0375 + 75d921a commit c4e5854
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cytubebot.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ CytubeBot.prototype.handleMoveMedia = function(data) {
// needPasswords are sent when the room we are trying to join has a password
CytubeBot.prototype.handleNeedPassword = function() {
if (this.roomPassword) {
this.logger.cytube.log("!~~~! Room has password; sending password")
this.logger.cytubelog.log("!~~~! Room has password; sending password")
this.socket.emit("channelPassword", this.roomPassword)
this.roomPassword = null
} else {
Expand Down
2 changes: 2 additions & 0 deletions lib/ircclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ IRCClient.prototype.start = function() {
this.client.connect()
if (this.pass) {
setTimeout(function() {
if(self.connected != true)
return console.log("Not Connected to IRC.")
self.client.say("NickServ", "IDENTIFY " + self.pass)
}, 5000)
}
Expand Down

0 comments on commit c4e5854

Please sign in to comment.