MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.117.158.174
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/erc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/erc/erc-capab.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:35 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/erc/erc-capab.el
;;; in Emacs version 24.3.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\300\301!\210\302\303\304\305\306\301%\210\307\310\311\312\306\303\313\314&\210\315\316\317\320\306\303\306\321&\210\307\322\304\323\324\325\326\327\306\330\313\331&\207" [require erc custom-declare-group erc-capab nil "Support for dancer-ircd's CAPAB settings." :group custom-declare-variable erc-capab-identify-prefix "*" "The prefix used for unidentified users.\n\nIf you change this from the default \"*\", be sure to use a\ncharacter not found in IRC nicknames to avoid confusion." :type (choice string (const nil)) custom-declare-face erc-capab-identify-unidentified ((t)) "Face to use for `erc-capab-identify-prefix'." erc-faces erc-capab-identify-mode "Non-nil if Erc-Capab-Identify mode is enabled.\nSee the command `erc-capab-identify-mode' for a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `erc-capab-identify-mode'." :set custom-set-minor-mode :initialize custom-initialize-default erc-capab-identify boolean] 12)
#@252 Toggle ERC capab-identify mode.
With a prefix argument ARG, enable capab-identify if ARG is positive,
and disable it otherwise.  If called from Lisp, enable the mode
if ARG is omitted or nil.
Handle dancer-ircd's CAPAB IDENTIFY-MSG and IDENTIFY-CTCP.
(defalias 'erc-capab-identify-mode #[(&optional arg) "\303 	\304=\203\n?\202\305	!\306V\211\203\307 \210\202!\310 \210\311\312\n\203+\313\202,\314\"\210\315\316!\203Q\317\302!\210\303 \203D\303 \232\203Q\320\321\n\203N\322\202O\323\"\210)\324 \210\n\207" [#1=#:last-message arg erc-capab-identify-mode current-message toggle prefix-numeric-value 0 erc-capab-identify-enable erc-capab-identify-disable run-hooks erc-capab-identify-mode-hook erc-capab-identify-mode-on-hook erc-capab-identify-mode-off-hook called-interactively-p any customize-mark-as-set message "Erc-Capab-Identify mode %sabled" "en" "dis" force-mode-line-update] 4 (#$ . 1624) (list (or current-prefix-arg 'toggle))])
(byte-code "\301\302\303\304\300!\205\n\303\211%\207" [erc-capab-identify-mode-map add-minor-mode erc-capab-identify-mode nil boundp] 6)
#@33 Enable ERC capab-identify mode.
(defalias 'erc-capab-identify-enable #[nil "\301\302\303\"\210\304\305\306\307\304#\210\305\310\311\"\210\305\312\313\"\210\305\314\313\"\210\305\315\316\304#\210\317\320\321\322!\"\207" [erc-capab-identify-mode add-to-list erc-modules capab-identify t add-hook erc-server-005-functions erc-capab-identify-setup erc-server-290-functions erc-capab-identify-activate erc-server-PRIVMSG-functions erc-capab-identify-remove/set-identified-flag erc-server-NOTICE-functions erc-insert-modify-hook erc-capab-identify-add-prefix mapc #[(buffer) "\205rq\210\301 )\207" [buffer erc-capab-identify-setup] 1] erc-buffer-list erc-open-server-buffer-p] 4 (#$ . 2723) nil])
#@34 Disable ERC capab-identify mode.
(defalias 'erc-capab-identify-disable #[nil "\302\303\"\304\305\306\307\"\210\305\310\311\"\210\305\312\313\"\207" [erc-modules erc-capab-identify-mode delq capab-identify nil remove-hook erc-server-005-functions erc-capab-identify-setup erc-server-290-functions erc-capab-identify-activate erc-insert-modify-hook erc-capab-identify-add-prefix] 3 (#$ . 3425) nil])
(byte-code "\300\301\302\303#\210\300\304\302\303#\210\300\305\302\303#\207" [put erc-capab-identify-mode definition-name capab-identify erc-capab-identify-enable erc-capab-identify-disable] 4)
#@40 CAPAB IDENTIFY-MSG has been activated.
(defvar erc-capab-identify-activated nil (#$ . 4026))
(make-variable-buffer-local 'erc-capab-identify-activated)
#@63 CAPAB IDENTIFY-MSG and IDENTIFY-CTCP messages have been sent.
(defvar erc-capab-identify-sent nil (#$ . 4184))
(make-variable-buffer-local 'erc-capab-identify-sent)
#@267 Set up CAPAB IDENTIFY on the current server.

Optional argument PROC is the current server's process.
Optional argument PARSED is the current message, a response struct.

These arguments are sent to this function when called as a hook in
`erc-server-005-functions'.
(defalias 'erc-capab-identify-setup #[(&optional proc parsed) "?\205\301 \207" [erc-capab-identify-sent erc-capab-identify-send-messages] 1 (#$ . 4356)])
#@57 Send CAPAB IDENTIFY messages if the server supports it.
(defalias 'erc-capab-identify-send-messages #[nil ";\205)\305\306\"\205)\307\310	\"\205)\311\203\312\n!\210)\313\314!\210\313\315!\210\316\211\207" [erc-server-version erc-server-parameters string erc-log-p erc-capab-identify-sent string-match "^\\(dancer-ircd\\|hyperion\\)" assoc "CAPAB" "Sending CAPAB IDENTIFY-MSG and IDENTIFY-CTCP" erc-log-aux erc-server-send "CAPAB IDENTIFY-MSG" "CAPAB IDENTIFY-CTCP" t] 3 (#$ . 4785)])
#@153 Set `erc-capab-identify-activated' and display an activation message.

PROC is the current server's process.
PARSED is an `erc-parsed' response struct.
(defalias 'erc-capab-identify-activate #[(proc parsed) "\303H	>\204\304\305\306\307#\210\310H\311\230\204,\303H	>\204$\304\305\306\307#\210\310H\312\230\205G\313\314\315\316\317\320\303H	>\204B\304\305\306\307#\210\310H\"$\207" [parsed cl-struct-erc-response-tags erc-capab-identify-activated 0 error "%s accessing a non-%s" erc-response\.contents erc-response 5 "IDENTIFY-MSG" "IDENTIFY-CTCP" t erc-display-message notice active format "%s activated"] 10 (#$ . 5285)])
#@159 Remove PARSED message's id flag and add the `erc-identified' text property.

PROC is the current server's process.
PARSED is an `erc-parsed' response struct.
(defalias 'erc-capab-identify-remove/set-identified-flag #[(proc parsed) "\306H	>\204\307\310\311\312#\210\313H\205S\314\315\n\"\205S\306H	>\204+\307\310\311\312#\210\211\313
\203K\316\317\320\n\"\321\317\322\n\"\323\230\203F\322\202G\306#\202O\317\320\n\"I\210)\324)\207" [parsed cl-struct-erc-response-tags msg erc-capab-identify-activated #1=#:v erc-capab-identify-mode 0 error "%s accessing a non-%s" erc-response\.contents erc-response 5 string-match "^\\([-\\+]\\)\\(.+\\)$" erc-propertize match-string 2 erc-identified 1 "+" nil] 9 (#$ . 5928)])
#@70 Add `erc-capab-identify-prefix' to nickname if user is unidentified.
(defalias 'erc-capab-identify-add-prefix #[nil "\205C\304 \305	!\205r	q\210\n))\205C\306 \206eb\210\307\310`!!\211\205Beb\205B\311\312!\313\314#\205B\315\224b\210\316\317\320#c)\207" [erc-capab-identify-prefix #1=#:buffer erc-capab-identify-activated nickname erc-server-buffer buffer-live-p erc-find-parsed-property erc-capab-identify-get-unidentified-nickname erc-get-parsed-vector re-search-forward regexp-quote nil t 0 erc-propertize face erc-capab-identify-unidentified] 5 (#$ . 6661)])
#@93 Return the nickname of the user if unidentified.
PARSED is an `erc-parsed' response struct.
(defalias 'erc-capab-identify-get-unidentified-nickname #[(parsed) "\303!\205<G\304Y\205<\305H	>\205<\306\305\307\305H	>\204&\310\311\312\313#\210\314H#\305\232\205<\315!\211\205;\316\n!@)\207" [parsed cl-struct-erc-response-tags nickuserhost vectorp 6 0 get-text-property erc-identified error "%s accessing a non-%s" erc-response\.contents erc-response 5 erc-get-parsed-vector-nick erc-parse-user] 8 (#$ . 7242)])
(provide 'erc-capab)

MMCT - 2023