Skip to content

Commit

Permalink
Autoident: make password a public attribute
Browse files Browse the repository at this point in the history
otherwise you cannot initialize it from the constructor
  • Loading branch information
moritz committed Feb 22, 2013
1 parent de63093 commit 21fd914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Net/IRC/Modules/Autoident.pm
Expand Up @@ -2,9 +2,9 @@ use v6;
module Net::IRC::Modules::Autoident;

class Net::IRC::Modules::Autoident {
has $password = die "Need to tell Autoident your password if you want it to work!";
has $.password = die "Need to tell Autoident your password if you want it to work!";
multi method connected($ev) {
say "Identifying with nickserv..";
$ev.conn.sendln("NS IDENTIFY $password");
$ev.conn.sendln("NS IDENTIFY $.password");
}
}

0 comments on commit 21fd914

Please sign in to comment.