From dfbbf5d6078020b511f9c0104d2f056fa5769f38 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Thu, 3 Nov 2022 20:23:28 -0400 Subject: open IRC for IRC Q&A --- emacsconf-stream.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'emacsconf-stream.el') diff --git a/emacsconf-stream.el b/emacsconf-stream.el index 1e2df14..2017683 100644 --- a/emacsconf-stream.el +++ b/emacsconf-stream.el @@ -201,12 +201,14 @@ This uses the BBB room if available, or the IRC channel if not." (interactive (list (emacsconf-complete-talk-info))) (let ((default-directory (emacsconf-stream-track-login talk)) (async-shell-command-buffer 'new-buffer)) - (shell-command - (concat "nohup firefox -new-window " - (shell-quote-argument - (or (plist-get talk :bbb-room) - (plist-get talk :webchat-url))) - " > /dev/null 2>&1 & ")))) + (save-window-excursion + (shell-command + (concat "nohup firefox -new-window " + (shell-quote-argument + (if (string-match (plist-get talk :q-and-a) "IRC") + (plist-get talk :webchat-url) + (plist-get talk :bbb-room))) + " > /dev/null 2>&1 & "))))) (defun emacsconf-stream-join-chat (talk) "Join the IRC chat for TALK." -- cgit v1.2.3