about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-08T20·20-0400
committerglittershark <grfn@gws.fyi>2020-07-08T20·20+0000
commitdf80e19bf51167e402bc662b788d09bebb7bd23a (patch)
tree18756cd959987949a7277430c427c4e4f9a19377 /users
parent2c7e9986e2337959a25d449f9d18b60992dd31ea (diff)
refactor(gs/emacs): Use IRCCloud bouncer r/1240
Not using znc.gws.fyi anymore

Change-Id: I6461096c949d68fdb0a061359e7273ccae9f5fef
Reviewed-on: https://cl.tvl.fyi/c/depot/+/955
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'users')
-rw-r--r--users/glittershark/emacs.d/irc.el18
1 files changed, 8 insertions, 10 deletions
diff --git a/users/glittershark/emacs.d/irc.el b/users/glittershark/emacs.d/irc.el
index 1d56d787c422..8ff48e994efb 100644
--- a/users/glittershark/emacs.d/irc.el
+++ b/users/glittershark/emacs.d/irc.el
@@ -5,16 +5,15 @@
 
 (defun irc-connect ()
   (interactive)
-  (let ((pw (let* ((irc-pw (first
-                            (auth-source-search :host "znc.gws.fyi"
-                                                      :max 1)))
-                   (secret (plist-get irc-pw :secret)))
-              (if (functionp secret) (funcall secret))))
+  (let ((pw (s-trim (shell-command-to-string "pass irccloud/freenode")))
         (gnutls-verify-error nil))
-    (erc-tls :server "znc.gws.fyi"
-             :port 5000
-             :nick "glittershark"
-             :password (concat "glittershark/freenode:" pw))))
+    (erc-tls :server "bnc.irccloud.com"
+             :port 6697
+             :nick "grfn"
+             :password (concat "bnc@"
+                               (s-trim (shell-command-to-string "hostname"))
+                               ":"
+                               pw))))
 
 
 (defgroup erc-alert nil
@@ -30,7 +29,6 @@
 (setq tvl-enabled? t)
 
 (defun erc-alert-important-p (info)
-  (setq last-info info)
   (let ((message (plist-get info :message))
         (erc-message (-> info (plist-get :data) (plist-get :message)))
         (erc-channel (-> info (plist-get :data) (plist-get :channel))))