diff options
| author | Max Audron <audron@cocaine.farm> | 2021-10-16 13:49:23 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-10-16 13:53:22 +0200 |
| commit | 7cbe1e70e440c29375425182e661ea9ff7bd6300 (patch) | |
| tree | de36d71d9167eed333f9a216f2d1588941b528c0 /src/hooks/mod.rs | |
| parent | move bot initialization out of macro (diff) | |
rework configuration to allow extensibility by hooksconfig-rework
Diffstat (limited to 'src/hooks/mod.rs')
| -rw-r--r-- | src/hooks/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hooks/mod.rs b/src/hooks/mod.rs index cdf3787..86d5697 100644 --- a/src/hooks/mod.rs +++ b/src/hooks/mod.rs @@ -36,7 +36,7 @@ pub fn sasl(bot: &crate::Bot, msg: Message) -> Result<()> { if text == "+" { let creds = Credentials::default() .with_username(bot.config.clone().user.username) - .with_password(bot.config.clone().user.password); + .with_password(bot.config.clone().user.password.unwrap()); let mut mechanism = Plain::from_credentials(creds)?; |
