Skip to content

Commit

Permalink
Merge pull request jimmyhillis#14 from AlexTalks/master
Browse files Browse the repository at this point in the history
add support for IRC server passwords
  • Loading branch information
jimmyhillis committed Dec 10, 2014
2 parents 8da9d63 + 440dadd commit e4d3f33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Write your own configuration file (`config-example.js`) is a good starting point
var config = {
// required
server: 'irc.freenode.com',
port: 6667,
secure: false,
password: '(optional)',
nick: 'slackbot',
username: 'slackbot-username',
token: 'XXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXX',
Expand Down
2 changes: 1 addition & 1 deletion lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Bot = function (config) {
['floodProtection', 'port', 'debug', 'showErrors', 'autoRejoin',
'autoConnect', 'secure', 'selfSigned', 'certExpired',
'floodProtection', 'floodProtectionDelay', 'sasl', 'stripColors',
'channelPrefixes', 'messageSplit'].forEach(function (opt) {
'channelPrefixes', 'messageSplit', 'password'].forEach(function (opt) {
if (self.config[opt]) {
self.irc[opt] = self.config[opt];
}
Expand Down

0 comments on commit e4d3f33

Please sign in to comment.