Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autoident: make password a public attribute

otherwise you cannot initialize it from the constructor
  • Loading branch information...
commit 21fd9146fec4bb62c02acea06d1a0b05d83e10ab 1 parent de63093
@moritz moritz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Net/IRC/Modules/Autoident.pm
View
4 lib/Net/IRC/Modules/Autoident.pm
@@ -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");
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.