From 5b04c503778f586db9877d81eb4fb871de4aa5c3 Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Mon, 24 Sep 2018 14:15:08 +0200
Subject: [PATCH] ma airdcpp.mod: remove newlines from passwords

---
 3modules/airdcpp.nix | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/3modules/airdcpp.nix b/3modules/airdcpp.nix
index 6709f02..342052e 100644
--- a/3modules/airdcpp.nix
+++ b/3modules/airdcpp.nix
@@ -55,6 +55,7 @@ let
               '';
               type = str;
               default = "";
+              apply = lib.removeSuffix "\n";
             };
             Server = mkOption {
               description = ''
@@ -162,6 +163,7 @@ let
             password = mkOption {
               description = "password of user";
               type = str;
+              apply = lib.removeSuffix "\n";
             };
             permissions = mkOption {
               description = "user permissions";