[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Erc-discuss] [PATCH 1/2] modifying erc-login to conditionally send appr
From: |
Joseph Gay |
Subject: |
[Erc-discuss] [PATCH 1/2] modifying erc-login to conditionally send appropriate CAP request for SASL |
Date: |
Wed, 01 Feb 2012 02:56:56 -0600 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) |
Hello. What precedes is a set of response handlers to implement SASL
PLAIN authentication. If there's a way around the small modification to
erc-login, it's likely preferable.
If this is useful / acceptable, I can request papers to fill out for
contributing or contribute by whatever method is most appropriate.
---
erc.el | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/erc.el b/erc.el
index 6e37f36..83caa43 100644
--- a/erc.el
+++ b/erc.el
@@ -5634,6 +5634,8 @@ user input."
(if erc-session-password
(erc-server-send (format "PASS %s" erc-session-password))
(message "Logging in without password"))
+ (when (and (boundp 'erc-sasl-use-sasl) erc-sasl-use-sasl)
+ (erc-server-send "CAP REQ :sasl"))
(erc-server-send (format "NICK %s" (erc-current-nick)))
(erc-server-send
(format "USER %s %s %s :%s"
--
1.7.2.5