Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Authorize when connecting to freenode
When connecting to freenode you can use your nickserv login:pass pair
as a server password (delimited by :), and it will authorize
you automatically.
  • Loading branch information
AlexDaniel committed Oct 29, 2016
1 parent 1dfa809 commit 98c9c73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Whateverable.pm6
Expand Up @@ -273,6 +273,7 @@ method selfrun($nick is copy, @alias?) {
:$nick
:userreal($nick.tc)
:username($nick.tc)
:password(?%*ENV<TESTABLE> ?? !! from-json(slurp CONFIG)<irc-login irc-password>.join(:))
:@alias
:host(%*ENV<TESTABLE> ?? 127.0.0.1 !! irc.freenode.net)
:channels(%*ENV<DEBUGGABLE> ?? <#whateverable> !! <#perl6 #perl6-dev #whateverable>)
Expand Down
6 changes: 4 additions & 2 deletions config.json
@@ -1,4 +1,6 @@
{
"login": "foo",
"access_token": "bar"
"login": "",
"access_token": "",
"irc-login": "",
"irc-password": ""
}

0 comments on commit 98c9c73

Please sign in to comment.