-;;; riece-keepalive.el --- keep an IRC connection
+;;; riece-keepalive.el --- keep an IRC connection -*- lexical-binding: t -*-
;; Copyright (C) 1998-2004 Daiki Ueno
;; Author: Daiki Ueno <ueno@unixuser.org>
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
;;; Commentary:
;;; Code:
(require 'riece-options)
+(require 'riece-server)
(defgroup riece-keepalive nil
"Keep an IRC connection."
(riece-run-at-time
riece-keepalive-ping-repeat riece-keepalive-ping-repeat
(lambda (buffer)
- (save-excursion
- (set-buffer buffer)
+ (with-current-buffer buffer
(riece-send-string "PING riece-keepalive\r\n")))
(current-buffer)))))