ZNC: Difference between revisions

imported>Mth
znc --makepass generates a hash, not a password
imported>Mbwk
m amend example to use nickserv module properly
Line 49: Line 49:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
service.znc.config.User.bob = {
service.znc.config.User.bob = {
   Network.freenode = {                               #    The nickserv module will
   Network.freenode = {
     Server = "chat.freenode.net +6697 yourpassword"; # <- pick up your password here.
     Server = "chat.freenode.net +6697";
     Chan = { "#nixos" = {}; "#nixos-wiki" = {}; };
     Chan = { "#nixos" = {}; "#nixos-wiki" = {}; };
     Nick = "bob";
     Nick = "bob";                             # Supply your password as an argument
     LoadModule = [ "nickserv" ];
     LoadModule = [ "nickserv yourpassword" ]; # <- to the nickserv module here.
     JoinDelay = 2; # Avoid joining channels before authenticating.
     JoinDelay = 2; # Avoid joining channels before authenticating.
   };
   };
};
};
</syntaxhighlight>
</syntaxhighlight>