emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] modifying erc-login to conditionally send appropriate CAP re


From: Joseph Gay
Subject: [PATCH 1/2] modifying erc-login to conditionally send appropriate CAP request for SASL
Date: Wed, 01 Feb 2012 12:19:10 -0600
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)

Submitted for your approval. I will need forms for copyright assignment.

This adds support for SASL PLAIN authentication. Freenode, for example,
requires SASL when connecting over TOR and when using the AT&T mobile
network.
---
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]