1 ;;; riece-globals.el --- global variables and constants.
2 ;; Copyright (C) 1998-2003 Daiki Ueno
4 ;; Author: Daiki Ueno <ueno@unixuser.org>
6 ;; Keywords: IRC, riece
8 ;; This file is part of Riece.
10 ;; This program is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; This program is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
27 ;;; Miscellaneous global variables:
28 (defvar riece-process-list nil
29 "List of processes opened in the current session.")
31 (defvar riece-current-channel nil
32 "The channel you currently have joined.")
33 (defvar riece-current-channels nil
34 "The channels you have currently joined.")
36 (defvar riece-save-variables-are-dirty nil
37 "Non nil if the variables in `riece-saved-forms' are changed.")
39 (defvar riece-polling 0
40 "Interval for polling the server.")
42 (defvar riece-reconnect-with-password nil
43 "If non-nil, attempt to reconnect with password.")
45 (defvar riece-obarray-size 1327
46 "The size of obarray used by riece on channelname and username space.")
48 ;;; Variables local to the server buffers:
49 (defvar riece-server-name nil
50 "The name of the server.
51 Local to the server buffers.")
52 (defvar riece-real-nickname nil
53 "Your nickname the server offers.
54 Local to the server buffers.")
55 (defvar riece-last-nickname nil
56 "The last nickname you requested.
57 Local to the server buffers.")
58 (defvar riece-nick-accepted nil
59 "The flag your nickname is accepted by the server.
60 Possible values are nil, `ok', and `sent'.
61 Local to the server buffers.")
62 (defvar riece-real-server-name nil
63 "The server name offered by the server.
64 Local to the server buffers.")
65 (defvar riece-real-userhost nil
66 "Your hostname the server offers.
67 Local to the server buffers.")
68 (defvar riece-user-at-host ""
69 "The user@host for the current input.
70 Local to the server buffers.")
71 (defvar riece-user-at-host-type nil
72 "The authentication type of `riece-user-at-host'.
73 Possible values are 'ok 'not-verified 'fake or 'invalid.
74 Local to the server buffers.")
75 (defvar riece-supported-user-modes nil
76 "User modes supported by server.
77 Local to the server buffers.")
78 (defvar riece-supported-channel-modes nil
79 "Channel modes supported by server.
80 Local to the server buffers.")
81 (defvar riece-channel-filter ""
82 "Filter of the result of NAMES or LIST.
83 This enables us to use \\[universal-argument] with NAMES and TOPIC.
84 Local to the server buffers.")
85 (defvar riece-read-point nil
86 "Point at the last input was seen.
87 Local to the server buffers.")
88 (defvar riece-obarray nil
89 "Namespace of the IRC world.
90 Local to the server buffers.")
91 (defvar riece-coding-system nil
92 "Coding system for process I/O.
93 Local to the server buffers.")
95 ;;; Variables local to the command buffer:
96 (defvar riece-default-channel-candidate nil
97 "A channel name used as completion candidate.
98 Local to the command buffer.")
99 (defvar riece-last-channel nil
100 "The channel you joined the last time.")
101 (defvar riece-command-buffer-mode 'channel
102 "Command buffer mode.
103 Possible values are `chat' and `channel'.
104 Local to the command buffer.")
106 ;;; Variables local to the channel buffers:
107 (defvar riece-freeze nil
108 "If t, channel window is not scrolled.
109 If 'own, channel window is not scrolled until you speak.
110 Local to the channel buffers.")
112 ;;; Modeline indicators:
113 (defvar riece-channel-indicator "None"
114 "A modeline indicator of the current channel.")
115 (defvar riece-channel-list-indicator "No channel"
116 "A modeline indicator of the current joined channels.")
117 (defvar riece-short-channel-indicator "None"
118 "A modeline indicator of the current channel.")
119 (defvar riece-user-indicator nil)
121 (defvar riece-away-indicator "-")
122 (defvar riece-operator-indicator "-")
123 (defvar riece-freeze-indicator "-")
126 (defvar riece-command-buffer "*Commands*"
127 "Name of command input buffer.")
128 (defvar riece-dialogue-buffer "*Dialogue*"
129 "Name of dialogue output buffer.")
130 (defvar riece-private-buffer "*Private*"
131 "Name of private message buffer.")
132 (defvar riece-others-buffer "*Others*"
133 "Name of others message buffer.")
134 (defvar riece-channel-buffer nil
135 "Name of channel message buffer.")
136 (defvar riece-channel-buffer-format "*Channel:%s*"
137 "Format of channel message buffer.")
138 (defvar riece-channel-list-buffer " *Channels*"
139 "Name of channel list buffer.")
140 (defvar riece-user-list-buffer " *Users*"
141 "Name of user list buffer.")
142 (defvar riece-wallops-buffer " *WALLOPS*")
144 (defvar riece-buffer-list nil)
145 (defvar riece-overriding-server-name nil)
147 (defconst riece-change-prefix "*** Change: ")
148 (defconst riece-notice-prefix "*** Notice: ")
149 (defconst riece-wallops-prefix "*** Notice: ")
150 (defconst riece-error-prefix "*** Error: ")
151 (defconst riece-info-prefix "*** Info: ")
152 (defconst riece-prefix-regexp "\\*\\*\\* \\([^:]+: \\)")
154 (defconst riece-time-prefix-regexp "[0-9][0-9]:[0-9][0-9] ")
156 (provide 'riece-globals)
158 ;;; riece-globals.el ends here