Change README.md
[navi2ch.git] / navi2ch-futaba.el
blob9350a0897f326790b510853f46067b0e11b3de48
1 ;;; navi2ch-futaba.el --- View futaba module for Navi2ch. -*- coding: iso-2022-7bit; -*-
3 ;; Copyright (C) 2002, 2003, 2004 by Navi2ch Project
5 ;; Author:
7 ;; Keywords: 2ch, network
9 ;; This file is free software; you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation; either version 2, or (at your option)
12 ;; any later version.
14 ;; This file is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs; see the file COPYING. If not, write to
21 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 ;; Boston, MA 02111-1307, USA.
24 ;;; Commentary:
28 ;;; Code:
29 (provide 'navi2ch-futaba)
31 (eval-when-compile
32 (require 'cl-lib)
33 (require 'navi2ch-decls)
34 (require 'navi2ch-inline))
36 (require 'navi2ch-vars)
38 (defvar navi2ch-futaba-func-alist
39 '((bbs-p . navi2ch-futaba-p)
40 (send-success-p . navi2ch-futaba-send-message-success-p)
43 (defvar navi2ch-futaba-variable-alist
44 (list (cons 'coding-system navi2ch-coding-system)))
46 (navi2ch-multibbs-regist 'futaba
47 navi2ch-futaba-func-alist
48 navi2ch-futaba-variable-alist)
50 ;;-------------
52 (defun navi2ch-futaba-p (uri)
53 "URI \e$B$,$U$?$P$A$c$s$M$k$J$i$P\e(B non-nil\e$B$rJV$9!#\e(B"
54 (string-match "http://www.2chan.net/" uri))
56 (defun navi2ch-futaba-send-message-success-p (proc)
57 (string= "302" (navi2ch-net-get-status proc)))
60 (provide 'navi2ch-futaba)
62 ;;; navi2ch-futaba.el ends here