Rozdział 2. Pluginy

Spis treści

Plugin: autoresponder
Variables
Plugin: gg
Commands
Variables
Session Variables
Session Variables
Plugin: gpg
Commands
Plugin: jabber
Commands
Session Variables
Session Variables
Plugin: logsoracle
Commands
Variables
Plugin: logsqlite
Wstęp
Sposób użycia
Struktura bazy danych
Commands
Variables
Plugin: ncurses
Variables
Plugin: python
Interfejs od strony interpretera
Obsługa poleceń i sygnałów
Przykładowy skrypt
Commands
Plugin: readline
Variables
Plugin: xmsg
Variables
Session Variables
Session Variables

Plugin: autoresponder

Variables

allowed_sessions

Type.  string

Default value.  (none)

A comma-separated list of sessions, for which autoresponder plugin
will be used. Both UIDs and aliases can be used.

Note that when using this plugin with a "gg" session, you need to
ignore or add to your roster the special user "gg:0", who sends "system
messages". Otherwise, the server may drop your connection right after
establishing it.

answer

Type.  string

Default value.  (none)

Correct answer for your question - i.e. if user does reply with exact
string, his further messages will be delivered to user. If null, then
autoresponder will expect user to rewrite the 'question' string.

greeting

Type.  string

Default value.  (none)

If set, that message will be sent to user, when he sends correct
answer.

match_mode

Type.  integer

Default value.  1

Defines match mode for comparing specified answer with incoming
messages. Possible values:
	0 - exact match
	1 - substring match (answer must be somewhere in msg)
	2 - POSIX regular expression match

question

Type.  string

Default value.  (none)

Question sent to unknown user on incoming message receival. If null,
autoresponder will be disabled.