4 ;;; Automatically annoy Zen Internet Relay Chat client
6 ;;; Copyright (C) 1993, 1994 Ben A. Mesander
8 ;;; Author: Ben Mesander <ben@gnu.ai.mit.edu>
9 ;;; Maintainer: ben@gnu.ai.mit.edu
10 ;;; Keywords: extensions
11 ;;; Created: 1994/02/28
13 ;;; This program is free software; you can redistribute it and/or modify
14 ;;; it under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 2, or (at your option)
16 ;;; any later version.
18 ;;; This program is distributed in the hope that it will be useful,
19 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with this program; if not, you can either send email to this
25 ;;; program's maintainer or write to: The Free Software Foundation,
26 ;;; Inc.; 675 Massachusetts Avenue; Cambridge, MA 02139, USA.
37 (defvar zenirc-pjg-interval '(0 600))
38 (defvar zenirc-last-pjg '(0 0))
39 (zenirc-add-hook 'zenirc-timer-hook 'zenirc-pjg)
40 (defun zenirc-pjg (proc now)
41 (if (zenirc-time< zenirc-pjg-interval
42 (zenirc-time-diff now zenirc-last-pjg))
45 proc "PRIVMSG pjg :fascist pjg.\n")
46 (setq zenirc-last-pjg now))))
50 ;;; zenirc-pjg.el ends here