summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh45
-rw-r--r--configure.in7
-rw-r--r--docs/help/Makefile.am.gen (renamed from docs/help/Makefile.am)4
-rw-r--r--docs/help/help17
-rw-r--r--docs/help/in/Makefile.am.gen2
-rw-r--r--docs/help/in/action.in9
-rw-r--r--docs/help/in/admin.in8
-rw-r--r--docs/help/in/alias.in16
-rw-r--r--docs/help/in/away.in28
-rw-r--r--docs/help/in/ban.in7
-rw-r--r--docs/help/in/bantype.in16
-rw-r--r--docs/help/in/beep.in6
-rw-r--r--docs/help/in/cat.in8
-rw-r--r--docs/help/in/cd.in8
-rw-r--r--docs/help/in/channel.in35
-rw-r--r--docs/help/in/clear.in9
-rw-r--r--docs/help/in/connect.in11
-rw-r--r--docs/help/in/ctcp.in7
-rw-r--r--docs/help/in/cycle.in7
-rw-r--r--docs/help/in/date.in11
-rw-r--r--docs/help/in/dcc.in21
-rw-r--r--docs/help/in/dehilight.in9
-rw-r--r--docs/help/in/deop.in10
-rw-r--r--docs/help/in/devoice.in10
-rw-r--r--docs/help/in/die.in7
-rw-r--r--docs/help/in/disconnect.in7
-rw-r--r--docs/help/in/echo.in5
-rw-r--r--docs/help/in/eval.in6
-rw-r--r--docs/help/in/format.in9
-rw-r--r--docs/help/in/hash.in5
-rw-r--r--docs/help/in/help.in13
-rw-r--r--docs/help/in/hilight.in16
-rw-r--r--docs/help/in/ignore.in26
-rw-r--r--docs/help/in/info.in6
-rw-r--r--docs/help/in/invite.in7
-rw-r--r--docs/help/in/invitelist.in9
-rw-r--r--docs/help/in/ircnet.in21
-rw-r--r--docs/help/in/ison.in7
-rw-r--r--docs/help/in/join.in13
-rw-r--r--docs/help/in/kick.in16
-rw-r--r--docs/help/in/kickban.in10
-rw-r--r--docs/help/in/kill.in18
-rw-r--r--docs/help/in/knockout.in11
-rw-r--r--docs/help/in/lastlog.in12
-rw-r--r--docs/help/in/links.in9
-rw-r--r--docs/help/in/list.in9
-rw-r--r--docs/help/in/log.in42
-rw-r--r--docs/help/in/lusers.in7
-rw-r--r--docs/help/in/map.in5
-rw-r--r--docs/help/in/me.in8
-rw-r--r--docs/help/in/mircdcc.in11
-rw-r--r--docs/help/in/mode.in24
-rw-r--r--docs/help/in/motd.in7
-rw-r--r--docs/help/in/msg.in15
-rw-r--r--docs/help/in/names.in13
-rw-r--r--docs/help/in/nctcp.in7
-rw-r--r--docs/help/in/netsplit.in6
-rw-r--r--docs/help/in/nick.in6
-rw-r--r--docs/help/in/note.in28
-rw-r--r--docs/help/in/notice.in10
-rw-r--r--docs/help/in/notify.in15
-rw-r--r--docs/help/in/op.in8
-rw-r--r--docs/help/in/oper.in10
-rw-r--r--docs/help/in/part.in8
-rw-r--r--docs/help/in/perlflush.in7
-rw-r--r--docs/help/in/ping.in10
-rw-r--r--docs/help/in/query.in11
-rw-r--r--docs/help/in/quit.in10
-rw-r--r--docs/help/in/quote.in5
-rw-r--r--docs/help/in/rawlog.in15
-rw-r--r--docs/help/in/reconnect.in10
-rw-r--r--docs/help/in/reload.in7
-rw-r--r--docs/help/in/restart.in12
-rw-r--r--docs/help/in/rmreconns.in7
-rw-r--r--docs/help/in/rping.in12
-rw-r--r--docs/help/in/run.in7
-rw-r--r--docs/help/in/save.in8
-rw-r--r--docs/help/in/sconnect.in8
-rw-r--r--docs/help/in/scrollback.in12
-rw-r--r--docs/help/in/server.in33
-rw-r--r--docs/help/in/servlist.in19
-rw-r--r--docs/help/in/set.in18
-rw-r--r--docs/help/in/silence.in22
-rw-r--r--docs/help/in/squery.in5
-rw-r--r--docs/help/in/squit.in7
-rw-r--r--docs/help/in/stats.in20
-rw-r--r--docs/help/in/time.in11
-rw-r--r--docs/help/in/toggle.in11
-rw-r--r--docs/help/in/topic.in6
-rw-r--r--docs/help/in/trace.in8
-rw-r--r--docs/help/in/ts.in7
-rw-r--r--docs/help/in/unalias.in7
-rw-r--r--docs/help/in/unban.in7
-rw-r--r--docs/help/in/unignore.in7
-rw-r--r--docs/help/in/unnotify.in7
-rw-r--r--docs/help/in/unquery.in7
-rw-r--r--docs/help/in/uping.in12
-rw-r--r--docs/help/in/userhost.in5
-rw-r--r--docs/help/in/ver.in9
-rw-r--r--docs/help/in/version.in8
-rw-r--r--docs/help/in/voice.in8
-rw-r--r--docs/help/in/wall.in10
-rw-r--r--docs/help/in/wallchops.in8
-rw-r--r--docs/help/in/wallops.in10
-rw-r--r--docs/help/in/who.in13
-rw-r--r--docs/help/in/whois.in15
-rw-r--r--docs/help/in/whowas.in19
-rw-r--r--docs/help/in/window.in40
-rw-r--r--docs/help/in/wjoin.in9
-rw-r--r--docs/help/in/wquery.in7
-rwxr-xr-xsyntax.pl32
111 files changed, 1304 insertions, 27 deletions
diff --git a/autogen.sh b/autogen.sh
index a91edd5a..3fe6e241 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,13 +6,11 @@ test -z "$srcdir" && srcdir=.
PKG_NAME="Irssi"
-(test -f $srcdir/configure.in \
-## put other tests here
-) || {
- echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+if test ! -f $srcdir/configure.in; then
+ echo -n "**Error**: Directory \`$srcdir\' does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
-}
+fi
# get versions
version_date=`date +%Y%m%d`
@@ -21,6 +19,29 @@ echo "/* automatically created by autogen.sh */" > irssi-version.h.in
echo "#define IRSSI_VERSION \"@VERSION@\"" >> irssi-version.h.in
echo "#define IRSSI_VERSION_DATE \"$version_date\"" >> irssi-version.h.in
+# generate colorless.theme
+echo "formats = {" > colorless.theme
+
+files=`find src -name 'module-formats.c'`
+for i in $files; do
+ file=`echo "$i"|sed 's@^src/@@'`
+ file=`echo "$file"|sed 's@/module-formats\.c$@@'`
+ echo " \"$file\" = {" >> colorless.theme
+ cat $i | perl -e 'while (<>) { if (/^\W*{\W*"([^"]*)",\W*"([^"]*)".*/) { $key = $1; $value = $2; $value =~ s/\$([0-9])(\%.-)/\$\{\1\}\2/g; $value =~ s/%[krgybmpcwKRGYBMPCW01234567]//g; print(" $key = \"$value\";\n"); } }' >> colorless.theme
+ echo " };" >> colorless.theme
+done
+
+echo "};" >> colorless.theme
+
+# create help files
+perl syntax.pl
+files=`echo docs/help/in/*.in|sed -e 's/docs\/help\/in\///g' -e 's/Makefile.in //'`
+cat docs/help/in/Makefile.am.gen|sed "s/@HELPFILES@/$files/g" > docs/help/in/Makefile.am
+
+files=`echo $files|sed 's/\.in//g'`
+cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g" > docs/help/Makefile.am
+
+
# *********** a bit modified GNOME's macros/autogen.sh **********
DIE=0
@@ -133,17 +154,3 @@ if test x$NOCONFIGURE = x; then
else
echo Skipping configure process.
fi
-
-# generate colorless.theme
-echo "formats = {" > colorless.theme
-
-files=`find src -name 'module-formats.c'`
-for i in $files; do
- file=`echo "$i"|sed 's@^src/@@'`
- file=`echo "$file"|sed 's@/module-formats\.c$@@'`
- echo " \"$file\" = {" >> colorless.theme
- cat $i | perl -e 'while (<>) { if (/^\W*{\W*"([^"]*)",\W*"([^"]*)".*/) { $key = $1; $value = $2; $value =~ s/\$([0-9])(\%.-)/\$\{\1\}\2/g; $value =~ s/%[krgybmpcwKRGYBMPCW01234567]//g; print(" $key = \"$value\";\n"); } }' >> colorless.theme
- echo " };" >> colorless.theme
-done
-
-echo "};" >> colorless.theme
diff --git a/configure.in b/configure.in
index dd73873f..0c02c7b6 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
AC_INIT(src)
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(irssi, 0.7.93)
+AM_INIT_AUTOMAKE(irssi, 0.7.94)
AM_MAINTAINER_MODE
@@ -198,7 +198,9 @@ dnl ** curses checks
dnl **
if test "x$want_textui" = "xyes"; then
+ saved_LIBS="$LIBS"
AC_CHECK_CURSES
+ LIBS="$saved_LIBS"
if test "x$has_ncurses" != "x"; then
AC_CHECK_LIB(ncurses, use_default_colors, [
@@ -377,8 +379,6 @@ src/irc/bot/Makefile
src/irc/dcc/Makefile
src/irc/notifylist/Makefile
src/irc/flood/Makefile
-src/silc/Makefile
-src/silc/core/Makefile
src/fe-common/Makefile
src/fe-common/core/Makefile
src/fe-common/irc/Makefile
@@ -395,6 +395,7 @@ servertest/Makefile
scripts/Makefile
docs/Makefile
docs/help/Makefile
+docs/help/in/Makefile
stamp.h
irssi.spec
irssi-version.h
diff --git a/docs/help/Makefile.am b/docs/help/Makefile.am.gen
index 67bb8bbb..93aeff19 100644
--- a/docs/help/Makefile.am
+++ b/docs/help/Makefile.am.gen
@@ -1,6 +1,8 @@
helpdir = $(datadir)/irssi/help
help_DATA = \
- help
+ @HELPFILES@
EXTRA_DIST = $(help_DATA)
+
+SUBDIRS = in
diff --git a/docs/help/help b/docs/help/help
index 31297c74..1ec6123b 100644
--- a/docs/help/help
+++ b/docs/help/help
@@ -1,4 +1,13 @@
-Sample help file. Here work the standard text formats,
-like %_bolds%_ and %Rcolors%n. So, only thing we need now
-is the actual helps, anyone care to write them? :) Epic has
-pretty good, maybe we could use them...?
+
+HELP [<command>]
+
+Shows help on commands. Try:
+ /HELP command
+
+Also try, for example:
+ /SET beep
+or
+ /SET auto
+
+See also:
+
diff --git a/docs/help/in/Makefile.am.gen b/docs/help/in/Makefile.am.gen
new file mode 100644
index 00000000..87be2026
--- /dev/null
+++ b/docs/help/in/Makefile.am.gen
@@ -0,0 +1,2 @@
+EXTRA_DIST = \
+ @HELPFILES@
diff --git a/docs/help/in/action.in b/docs/help/in/action.in
new file mode 100644
index 00000000..26d93a19
--- /dev/null
+++ b/docs/help/in/action.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:action@
+
+Same as ME, but gets channel or nick as an additional parameter.
+Example: /action #irssi yawns
+(This outputs the following to #irssi: * Nick yawns)
+
+See also: ME
+
diff --git a/docs/help/in/admin.in b/docs/help/in/admin.in
new file mode 100644
index 00000000..b5d95254
--- /dev/null
+++ b/docs/help/in/admin.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:admin@
+
+Displays the administrative details about the given server. If
+no server is specified, the server you are connected to is
+used. If a nickname is supplied then it gives the administrative
+information for that person's current server.
+
diff --git a/docs/help/in/alias.in b/docs/help/in/alias.in
new file mode 100644
index 00000000..7621763a
--- /dev/null
+++ b/docs/help/in/alias.in
@@ -0,0 +1,16 @@
+
+@SYNTAX:alias@
+
+Creates a new alias or shows matching defined aliases.
+Without parameters shows all defined aliases.
+
+Examples:
+
+/ALIAS w
+ - shows all defined aliases starting with letter w.
+
+/ALIAS -send
+ - removes alias 'send'.
+
+See also: UNALIAS
+
diff --git a/docs/help/in/away.in b/docs/help/in/away.in
new file mode 100644
index 00000000..8283d63d
--- /dev/null
+++ b/docs/help/in/away.in
@@ -0,0 +1,28 @@
+
+@SYNTAX:away@
+
+ -one
+ -all
+
+This command marks you as being "away". It is used to tell people that
+you currently aren't paying attention to your screen. You might use it
+if you are taking a nap, in the shower, getting some food, or otherwise
+just aren't there at the moment. When you're "away" you will see "(zZzZ)"
+in your statusbar.
+
+Anyone who does a WHOIS on your nickname will see that you are away,
+as well as your away message. Anyone doing a WHO that returns information
+about you will also see that you're gone.
+
+By default, if someone sends you a MSG while you are away, your client
+will beep. You can turn this off by setting BEEP_WHEN_AWAY to OFF.
+
+If you send a MSG to someone who is away, you will automatically be
+notified of this. By default, you will only receive this notification
+once. If you wish to see it every time (to tell when a person is no
+longer marked away, for instance), change SHOW_AWAY_ONCE to OFF.
+
+You can remove your away status by using AWAY with no arguments.
+
+See also: SET AWAY
+
diff --git a/docs/help/in/ban.in b/docs/help/in/ban.in
new file mode 100644
index 00000000..26c4c36f
--- /dev/null
+++ b/docs/help/in/ban.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:ban@
+
+Bans the specified nick or userhost mask.
+
+See also: BANTYPE, KNOCKOUT
+
diff --git a/docs/help/in/bantype.in b/docs/help/in/bantype.in
new file mode 100644
index 00000000..7657d73d
--- /dev/null
+++ b/docs/help/in/bantype.in
@@ -0,0 +1,16 @@
+
+@SYNTAX:bantype@
+
+This command shows or views the current ban type.
+The ban type is used by BAN and KNOCKOUT commands.
+
+Normal - *!user@*.domain.net
+Host - *!*@host.domain.net
+Domain - *!*@*.domain.net
+Custom [nick] [user] [host] [domain]
+
+eg. /bantype custom nick domain - nick!*@*.domain.net
+eg. /bantype custom user host - *!user@host.domain.net
+
+See also: BAN, KNOCKOUT
+
diff --git a/docs/help/in/beep.in b/docs/help/in/beep.in
new file mode 100644
index 00000000..12df1ae7
--- /dev/null
+++ b/docs/help/in/beep.in
@@ -0,0 +1,6 @@
+
+@SYNTAX:beep@
+
+Outputs the bell-character, usually causing
+your terminal beep.
+
diff --git a/docs/help/in/cat.in b/docs/help/in/cat.in
new file mode 100644
index 00000000..ea324aa3
--- /dev/null
+++ b/docs/help/in/cat.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:cat@
+
+Outputs the contents of the specified file. Equivalent to
+UNIX 'cat' command.
+
+See also: CD
+
diff --git a/docs/help/in/cd.in b/docs/help/in/cd.in
new file mode 100644
index 00000000..dd62f710
--- /dev/null
+++ b/docs/help/in/cd.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:cd@
+
+Changes the current working directory. Equivalent to UNIX
+'cd' command.
+
+See also: DCC GET
+
diff --git a/docs/help/in/channel.in b/docs/help/in/channel.in
new file mode 100644
index 00000000..7484ac15
--- /dev/null
+++ b/docs/help/in/channel.in
@@ -0,0 +1,35 @@
+
+@SYNTAX:channel@
+
+Irssi can automatically join to specified channels in specified
+IRC networks. It can also automatically send the password when
+manually joining to channel without specifying the password.
+
+/CHANNEL ADD [-auto | -noauto] [-bots <masks>] [-botcmd <command>]
+ <channel> <ircnet> [<password>]
+
+With -bots and -botcmd arguments you can automatically send
+commands to someone in channel. This is useful for automatically
+getting ops for channels, for example
+
+/CHANNEL ADD -auto -bots "*!bot@bothost.org bot*!*@host2.org"
+ -botcmd "msg $0 op mypass" #channel ircnet
+
+You can also use the -botcmd without -bots argument. The command is
+then sent whenever you join the channel.
+
+If you want to remove some settings from existing channel record,
+for example bots, just give the -bots "" parameters to it. Password
+can be removed by setting it to - (or actually, "" works too).
+
+You can remove the channels with
+/CHANNEL REMOVE <channel> <ircnet>
+
+/CHANNEL LIST displays list of channels with settings.
+
+/CHANNEL without any arguments displays list of channels you have
+joined. You can also use /CHANNEL to join to channels just as with
+/JOIN, like /CHANNEL #a.
+
+See also: TS, JOIN
+
diff --git a/docs/help/in/clear.in b/docs/help/in/clear.in
new file mode 100644
index 00000000..b3db54ef
--- /dev/null
+++ b/docs/help/in/clear.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:clear@
+
+This command clears the current window of all text. It is useful
+for wiping a screen that has rendered improperly (such as due
+to a bad termcap entry) or that contains sensitive information
+(such as one's OPER password).
+
+
diff --git a/docs/help/in/connect.in b/docs/help/in/connect.in
new file mode 100644
index 00000000..e7d652a0
--- /dev/null
+++ b/docs/help/in/connect.in
@@ -0,0 +1,11 @@
+
+@SYNTAX:connect@
+
+ -ircnet the IRCNet
+ -host the host
+
+This command makes irssi to connect to specified server.
+Current connections are kept and another one is created.
+
+See also: SERVER
+
diff --git a/docs/help/in/ctcp.in b/docs/help/in/ctcp.in
new file mode 100644
index 00000000..77c78b7c
--- /dev/null
+++ b/docs/help/in/ctcp.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:ctcp@
+
+Sends a CTCP-message. For example CTCP ACTION, or CTCP VERSION.
+
+See also: ME, ACTION
+
diff --git a/docs/help/in/cycle.in b/docs/help/in/cycle.in
new file mode 100644
index 00000000..27ee6ae6
--- /dev/null
+++ b/docs/help/in/cycle.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:cycle@
+
+Cycles (leaves and joins) the current channel or the specified channel.
+
+See also: JOIN, LEAVE, PART
+
diff --git a/docs/help/in/date.in b/docs/help/in/date.in
new file mode 100644
index 00000000..5b2ca4b9
--- /dev/null
+++ b/docs/help/in/date.in
@@ -0,0 +1,11 @@
+
+@SYNTAX:time@
+
+This displays the time of day, local to the server queried (thus,
+the time returned may not be the same as the client's local time).
+
+If the server name is omitted, the client's current server is used.
+If a nickname is given, that client's server is queried.
+
+Same as /TIME.
+
diff --git a/docs/help/in/dcc.in b/docs/help/in/dcc.in
new file mode 100644
index 00000000..771f5bfa
--- /dev/null
+++ b/docs/help/in/dcc.in
@@ -0,0 +1,21 @@
+
+@SYNTAX:dcc@
+
+This is a command to handle different DCC-connections. DCC is mainly
+used for more reliable and faster chatting and for sending and receiving
+files.
+
+/DCC CHAT nick
+ - Sends a chat connection request to remote client or accepts
+ a chat connection, if the remote end has already sent a request.
+/DCC GET nick
+ - Gets the file offered by remote client. The file is downloaded and
+ saved into the current working directory.
+/DCC SEND nick file
+ - Sends a DCC SEND request to remote client. Remote end has to accept
+ the request before the transmission can be started.
+/DCC CLOSE type nick
+ - Closes a DCC-connection. Type can be either SEND, GET or CHAT.
+
+See also: CD
+
diff --git a/docs/help/in/dehilight.in b/docs/help/in/dehilight.in
new file mode 100644
index 00000000..34f856a5
--- /dev/null
+++ b/docs/help/in/dehilight.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:dehilight@
+
+Makes irssi not to highlight items containing the text.
+If parameter is a number, deletes the specified hilight
+entry from the list.
+
+See also: HILIGHT
+
diff --git a/docs/help/in/deop.in b/docs/help/in/deop.in
new file mode 100644
index 00000000..e9893e6a
--- /dev/null
+++ b/docs/help/in/deop.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:deop@
+
+Takes off the channel operator privileges from the
+specified nick(s).
+
+Wildcards in the nick are allowed.
+
+See also: OP
+
diff --git a/docs/help/in/devoice.in b/docs/help/in/devoice.in
new file mode 100644
index 00000000..ce090191
--- /dev/null
+++ b/docs/help/in/devoice.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:devoice@
+
+Takes off the voice from the specified nick(s). This makes them
+not to be able to send messages to the moderated (+m) channel.
+
+Wildcards in the nick are allowed.
+
+See also: VOICE, MODE
+
diff --git a/docs/help/in/die.in b/docs/help/in/die.in
new file mode 100644
index 00000000..4ef6da0d
--- /dev/null
+++ b/docs/help/in/die.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:die@
+
+IRC-operator command. Makes IRC-server to die.
+
+See also: OPER
+
diff --git a/docs/help/in/disconnect.in b/docs/help/in/disconnect.in
new file mode 100644
index 00000000..c296e0be
--- /dev/null
+++ b/docs/help/in/disconnect.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:disconnect@
+
+Disconnects from the specified IRC-server.
+
+See also: CONNECT, SERVER
+
diff --git a/docs/help/in/echo.in b/docs/help/in/echo.in
new file mode 100644
index 00000000..0a70e354
--- /dev/null
+++ b/docs/help/in/echo.in
@@ -0,0 +1,5 @@
+
+@SYNTAX:echo@
+
+Prints text into the current window. Useful for scripts.
+
diff --git a/docs/help/in/eval.in b/docs/help/in/eval.in
new file mode 100644
index 00000000..8ea0652a
--- /dev/null
+++ b/docs/help/in/eval.in
@@ -0,0 +1,6 @@
+
+@SYNTAX:eval@
+
+Evaluates the given commands and executes them. Internal variables
+are expanded. See the special_vars.txt file in the docs-directory.
+
diff --git a/docs/help/in/format.in b/docs/help/in/format.in
new file mode 100644
index 00000000..ed576c95
--- /dev/null
+++ b/docs/help/in/format.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:format@
+
+ -reset
+ -delete
+
+Allows you to view/change irssi's messages.
+Use this command with care.
+
diff --git a/docs/help/in/hash.in b/docs/help/in/hash.in
new file mode 100644
index 00000000..62a889f8
--- /dev/null
+++ b/docs/help/in/hash.in
@@ -0,0 +1,5 @@
+
+@SYNTAX:hash@
+
+Not available.
+
diff --git a/docs/help/in/help.in b/docs/help/in/help.in
new file mode 100644
index 00000000..318b8204
--- /dev/null
+++ b/docs/help/in/help.in
@@ -0,0 +1,13 @@
+
+@SYNTAX:help@
+
+Shows help on commands. Try:
+ /HELP command
+
+Also try, for example:
+ /SET beep
+or
+ /SET auto
+
+See also:
+
diff --git a/docs/help/in/hilight.in b/docs/help/in/hilight.in
new file mode 100644
index 00000000..e2ce86f0
--- /dev/null
+++ b/docs/help/in/hilight.in
@@ -0,0 +1,16 @@
+
+@SYNTAX:hilight@
+
+ -mask: Match only for nick, <text> is a nick mask
+ -regexp: <text> is a regular expression
+ -word: <text> must match to full words
+ -nick: Hilight only the nick, not the whole line
+ -color: Print the message with <color>
+ -level: Match only for <level> messages, default is
+ publics,msgs,notices,actions
+ -channels: Match only in <channels>
+
+For regular expressions, see `man 7 regex`.
+
+See also: DEHILIGHT, SET HILIGHT
+
diff --git a/docs/help/in/ignore.in b/docs/help/in/ignore.in
new file mode 100644
index 00000000..34a49dec
--- /dev/null
+++ b/docs/help/in/ignore.in
@@ -0,0 +1,26 @@
+
+@SYNTAX:ignore@
+
+ -regexp: <pattern> is a regular expression
+ -word: <pattern> must match to full words
+ -pattern: <pattern> must match to the message's text
+ -replies: Ignore replies to nick in channels. For example
+ "/IGNORE -replies *!*@*.fi PUBLIC" ignores everyone
+ from Finland, but also anyone sending message
+ "tofinnishnick: blahblah".
+ -except: *DON'T* ignore
+ -channels: Ignore only in channels
+ <mask>: Either a nick mask or list of channels
+ <levels>: List of levels to ignore
+ <^levels>: List of levels to NOT ignore
+ (/ignore -except nick notices = /ignore nick ^notices)
+
+
+/IGNORE without any arguments displays list of ignores.
+
+The best match always wins, so you can have:
+ /IGNORE * CTCPS
+ /IGNORE -except *!*@host.org CTCPS
+
+See also: UNIGNORE
+
diff --git a/docs/help/in/info.in b/docs/help/in/info.in
new file mode 100644
index 00000000..e9aad17d
--- /dev/null
+++ b/docs/help/in/info.in
@@ -0,0 +1,6 @@
+
+@SYNTAX:info@
+
+Shows information about the IRC creators, debuggers, slaves and
+a lot of other people who no longer have much to do with irc.
+
diff --git a/docs/help/in/invite.in b/docs/help/in/invite.in
new file mode 100644
index 00000000..53afd898
--- /dev/null
+++ b/docs/help/in/invite.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:invite@
+
+Invites the specified nick to the current channel.
+
+See also:
+
diff --git a/docs/help/in/invitelist.in b/docs/help/in/invitelist.in
new file mode 100644
index 00000000..ed6bc060
--- /dev/null
+++ b/docs/help/in/invitelist.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:invitelist@
+
+Shows the +I modes of the current channel. +I mode
+allows free joins of clients with certain userhost mask
+even if the channel is invite only.
+
+See also: INVITE, MODE
+
diff --git a/docs/help/in/ircnet.in b/docs/help/in/ircnet.in
new file mode 100644
index 00000000..51a123fe
--- /dev/null
+++ b/docs/help/in/ircnet.in
@@ -0,0 +1,21 @@
+
+@SYNTAX:ircnet@
+
+ -kicks: Maximum number of nicks in one /KICK command
+ -msgs: Maximum number of nicks in one /MSG command
+ -modes: Maximum number of mode changes in one /MODE command
+ -whois: Maximum number of nicks in one /WHOIS command
+ -cmdspeed: Same as /SET cmd_queue_speed, see section 3.1
+ -cmdmax: Same as /SET cmd_max_at_once, see section 3.1
+ -nick, -user, -realname: Specify what nick/user/name to use
+ -host: Specify what host name to use, if you have multiple
+ -autosendcmd: Command to send after connecting to a server
+
+With -autosendcmd argument you can automatically run any commands
+after connecting to ircnet. This is useful for automatically
+identifying yourself to NickServ, for example
+
+Shows and changes the settings of defined IRC networks.
+
+See also: CONNECT
+
diff --git a/docs/help/in/ison.in b/docs/help/in/ison.in
new file mode 100644
index 00000000..01033f9f
--- /dev/null
+++ b/docs/help/in/ison.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:ison@
+
+Tells whether specified nicks are online.
+
+See also:
+
diff --git a/docs/help/in/join.in b/docs/help/in/join.in
new file mode 100644
index 00000000..bdd4b15c
--- /dev/null
+++ b/docs/help/in/join.in
@@ -0,0 +1,13 @@
+
+@SYNTAX:join@
+
+Joins a specified channel. Channel names usually begin with #-sign,
+which may be omitted here.
+
+JOIN is aliased to J by default. Example: /j irssi
+(This joins to the channel #irssi)
+
+Description
+
+See also: LEAVE, WINDOW CLOSE
+
diff --git a/docs/help/in/kick.in b/docs/help/in/kick.in
new file mode 100644
index 00000000..304c4d31
--- /dev/null
+++ b/docs/help/in/kick.in
@@ -0,0 +1,16 @@
+
+@SYNTAX:kick@
+
+This command "kicks" the specified user off of the specified
+channel. It is typically used to remove troublemakers, flooders,
+or people otherwise making a nuisanse of themselves on the channel.
+The reason for the kick is recommended, but not required by the IRC
+servers
+
+If the <channel> is omitted, removes the nick from the current
+channel.
+
+The default alias for /KICK is /K.
+
+See also: KNOCKOUT
+
diff --git a/docs/help/in/kickban.in b/docs/help/in/kickban.in
new file mode 100644
index 00000000..aff0cfb2
--- /dev/null
+++ b/docs/help/in/kickban.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:kickban@
+
+Kicks off and bans a nick from the current channel.
+A reason for the kick can be supplied.
+
+Default alias for /KICKBAN is /KB.
+
+See also: KNOCKOUT, BANTYPE
+
diff --git a/docs/help/in/kill.in b/docs/help/in/kill.in
new file mode 100644
index 00000000..338871d9
--- /dev/null
+++ b/docs/help/in/kill.in
@@ -0,0 +1,18 @@
+
+@SYNTAX:kill@
+
+IRC operator command.
+
+KILL is used to forcibly remote a client from the irc network.
+It works similarly to KICK, except that a reason must be
+given (even if it is meaningless or flat-out wrong).
+
+In general, KILL is useful only as a warning tool for abusive
+users. Modern irc clients (this one included) have automated
+means for reconnecting to a server after a disconnection (whether
+due to a KILL or something else), so KILL is by no means a
+permanent solution. It is not intended as a means for personal
+vendettas; this practice is generally frowned upon.
+
+See also: OPER
+
diff --git a/docs/help/in/knockout.in b/docs/help/in/knockout.in
new file mode 100644
index 00000000..00034494
--- /dev/null
+++ b/docs/help/in/knockout.in
@@ -0,0 +1,11 @@
+
+@SYNTAX:knockout@
+
+Kicks user off the channel and bans him/her. Ban
+lasts the given number of seconds or 5 minutes
+by default.
+
+Default alias for /KNOCKOUT is /KN.
+
+See also: BANTYPE, BAN, KICK
+
diff --git a/docs/help/in/lastlog.in b/docs/help/in/lastlog.in
new file mode 100644
index 00000000..128dcfa7
--- /dev/null
+++ b/docs/help/in/lastlog.in
@@ -0,0 +1,12 @@
+
+@SYNTAX:lastlog@
+
+ -word Shows only the lines matching the 'word'
+ -new
+ -away
+
+Shows the given number of lines of log from the
+current window.
+
+See also:
+
diff --git a/docs/help/in/links.in b/docs/help/in/links.in
new file mode 100644
index 00000000..726fcb6b
--- /dev/null
+++ b/docs/help/in/links.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:links@
+
+Shows the links between the IRC servers of the
+current IRC network. If a wildcard parameter is
+specified, shows only the matching entries.
+
+See also:
+
diff --git a/docs/help/in/list.in b/docs/help/in/list.in
new file mode 100644
index 00000000..32a3cdbd
--- /dev/null
+++ b/docs/help/in/list.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:list@
+
+Lists the channel names. Trying to list all the channel
+names usually causes you to be disconnected from the
+server with the reason "Excessive flood".
+
+See also:
+
diff --git a/docs/help/in/log.in b/docs/help/in/log.in
new file mode 100644
index 00000000..fd9fc2cf
--- /dev/null
+++ b/docs/help/in/log.in
@@ -0,0 +1,42 @@
+
+@SYNTAX:log@
+
+ -noopen: Create the entry to log list, but don't start logging
+ -autoopen: Automatically open this log file at startup
+ -targets: Log only in specified channels/nicks
+ -window: Log the active window
+ -rotate: Reopen the log file every hour, day, week or month.
+ This makes only sense if you specify date/time formats
+ to file name.
+ <filename>: File name where to log, it is parsed with
+ strftime(), so %d=day, etc. see "man strftime" for
+ more info.
+ <levels>: Defaults to ALL
+ <id>: ID number of log.
+
+/SET log_create_mode <mode> - Specifies what file mode to use with
+ the created log files. Default is 0644.
+
+All of these are parsed with strftime():
+/SET log_timestamp <text> - Specifies the time stamp format.
+ Default is "%H:%M ".
+/SET log_open_string <text> - Text written to log when it's opened
+/SET log_close_string <text> - Text written to log when it's closed
+/SET log_day_changed <text> - Text written to log when day changes
+
+NOTE: Log files are locked after opened, so two Irssis can't
+accidentally try to write to the same log file.
+
+Examples:
+
+/LOG OPEN -targets cras ~/irclogs/cras.log MSGS
+ - Logs all messages from/to nick `cras'
+
+/LOG OPEN -rotate day -targets #linux ~/irclogs/linux/linux-%Y-%m-%d
+ - Logs all messages in channel #linux. Log is rotated daily, so
+ logs in 1. May 2000 goes to file "linux-2000-05-01", when the
+ day is changed, Irssi closes the log and starts logging to
+ "linux-2000-05-02" etc.
+
+See also: SET LOG, WINDOW LOG
+
diff --git a/docs/help/in/lusers.in b/docs/help/in/lusers.in
new file mode 100644
index 00000000..24d76bb3
--- /dev/null
+++ b/docs/help/in/lusers.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:lusers@
+
+Shows user statistics of the current IRC network.
+
+See also:
+
diff --git a/docs/help/in/map.in b/docs/help/in/map.in
new file mode 100644
index 00000000..824dce37
--- /dev/null
+++ b/docs/help/in/map.in
@@ -0,0 +1,5 @@
+
+@SYNTAX:map@
+
+Not available in IRC.
+
diff --git a/docs/help/in/me.in b/docs/help/in/me.in
new file mode 100644
index 00000000..b918ec71
--- /dev/null
+++ b/docs/help/in/me.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:me@
+
+Sends a CTCP ACTION to the current channel or query.
+For example: /me sits back.
+
+See also: ACTION, CTCP
+
diff --git a/docs/help/in/mircdcc.in b/docs/help/in/mircdcc.in
new file mode 100644
index 00000000..d3402e0a
--- /dev/null
+++ b/docs/help/in/mircdcc.in
@@ -0,0 +1,11 @@
+
+@SYNTAX:mircdcc@
+
+Selects whether to send mIRC style CTCPs in DCC chat
+session.
+
+If a mIRC user sends first a CTCP, mIRC style CTCPs is
+automatically selected for that DCC Chat session.
+
+See also: SET MIRC
+
diff --git a/docs/help/in/mode.in b/docs/help/in/mode.in
new file mode 100644
index 00000000..aabbe224
--- /dev/null
+++ b/docs/help/in/mode.in
@@ -0,0 +1,24 @@
+
+@SYNTAX:mode@
+
+Changes and/or views modes. You can either change
+your own modes or channel modes (given that you're
+a channel operator).
+
+Examples:
+
+/MODE * +s
+ - Makes the current channel secret
+
+/MODE #irssi -o Beel0
+ - Deops user Beel0 on channel #irssi
+
+/MODE * +b *!*@*.org
+ - Bans on the current channel all users coming
+ from .org hosts.
+
+/MODE yournick +w
+ - Makes you to see the wallops.
+
+See also: BAN, VOICE, OP, DEOP
+
diff --git a/docs/help/in/motd.in b/docs/help/in/motd.in
new file mode 100644
index 00000000..ba354408
--- /dev/null
+++ b/docs/help/in/motd.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:motd@
+
+Shows the motd of the current server. This contains
+usually some useful info on the server, administrator and
+the rules.
+
diff --git a/docs/help/in/msg.in b/docs/help/in/msg.in
new file mode 100644
index 00000000..145d916a
--- /dev/null
+++ b/docs/help/in/msg.in
@@ -0,0 +1,15 @@
+
+@SYNTAX:msg@
+
+Sends a message to a nick or a channel. Usually this
+is used for sending private messages to other persons.
+
+Examples:
+
+/MSG friend Hi, what's up?
+
+/MSG #irssi Hello, is the new gtk-version out already?
+(This format is rarely needed.)
+
+See also: CTCP, /
+
diff --git a/docs/help/in/names.in b/docs/help/in/names.in
new file mode 100644
index 00000000..7bd4f3d4
--- /dev/null
+++ b/docs/help/in/names.in
@@ -0,0 +1,13 @@
+
+@SYNTAX:names@
+
+Shows the names (nicks) on the specified channel.
+
+Examples:
+
+/NAMES * - shows nicks on the current channel.
+
+/NAMES #42 - shows nicks on the channel #42.
+
+See also: WHO, CHANNEL
+
diff --git a/docs/help/in/nctcp.in b/docs/help/in/nctcp.in
new file mode 100644
index 00000000..58b80545
--- /dev/null
+++ b/docs/help/in/nctcp.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:nctcp@
+
+Sends a CTCP reply notice to the nick/channel.
+
+See also: CTCP, ACTION, MSG, NOTICE
+
diff --git a/docs/help/in/netsplit.in b/docs/help/in/netsplit.in
new file mode 100644
index 00000000..2e244ca1
--- /dev/null
+++ b/docs/help/in/netsplit.in
@@ -0,0 +1,6 @@
+
+@SYNTAX:netsplit@
+
+Irssi keeps track of people who were lost in net splits. With this
+command you can get a list of them.
+
diff --git a/docs/help/in/nick.in b/docs/help/in/nick.in
new file mode 100644
index 00000000..57313b7f
--- /dev/null
+++ b/docs/help/in/nick.in
@@ -0,0 +1,6 @@
+
+@SYNTAX:nick@
+
+Changes your nick. This should be hardly rarely
+used or needed.
+
diff --git a/docs/help/in/note.in b/docs/help/in/note.in
new file mode 100644
index 00000000..d77bb230
--- /dev/null
+++ b/docs/help/in/note.in
@@ -0,0 +1,28 @@
+
+@SYNTAX:note@
+
+NOTE is a sort of turbo-charged messaging system for irc. In short,
+it achieves at the server level what the client attempts to do with MSG
+and NOTIFY. The messaging system resembles modern voicemail systems
+(except in text); messages can be sent, stored, or set for deferred
+delivery. The client notification system works like NOTIFY, except with
+greater accuracy and flexibility.
+
+The most common uses of NOTE are its SPY and SEND functions. SPY is similar
+to NOTIFY, except it can accept a full address to spy on, not just a nickname.
+SEND, as its name implies, sends a note to a user; if that user is not currently
+online, it will be delivered if the user logs onto irc within a set time period.
+
+When referring to a particular user, NOTE can deal with the standard
+nick!user@host notation. Wildcards are allowed, and any portion may be omitted,
+so long as the identifier remains unambiguous.
+
+Examples:
+To send a note to Joebob (whose account is jbriggs@drivein.com):
+/NOTE SEND joebob!jbriggs@drivein.com Hey there! Great movie!
+
+To spy on anyone from blah.com for the next 30 days:
+/NOTE SPY +30 *!*@*.blah.com A blah.com user is active
+
+This command is Not available in the IRCNet.
+
diff --git a/docs/help/in/notice.in b/docs/help/in/notice.in
new file mode 100644
index 00000000..6b4da9b0
--- /dev/null
+++ b/docs/help/in/notice.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:notice@
+
+Sends a notice to the nick or the channel. Usually notices are
+used in bots and scripts for different kinds of replies. The
+IRC protocol states that notices may not generate replies to
+avoid msg loops.
+
+See also: NCTCP, MSG
+
diff --git a/docs/help/in/notify.in b/docs/help/in/notify.in
new file mode 100644
index 00000000..5f278e0c
--- /dev/null
+++ b/docs/help/in/notify.in
@@ -0,0 +1,15 @@
+
+@SYNTAX:notify@
+
+ -away: Notifies about away-status changes
+ -idle: Notifies if idle time is first larger than <minutes>
+ (default is hour) and then it drops down.
+ -list: Lists the notify list entries with all their settings
+ <mask>: Either a simple "nick" or "nick!*@*blah.org".
+ The nick can't contain wildcards, but the user/host can.
+
+/NOTIFY without any arguments displays if the people in notify
+list are online or offline.
+
+See also: UNNOTIFY, SET NOTIFY
+
diff --git a/docs/help/in/op.in b/docs/help/in/op.in
new file mode 100644
index 00000000..ce46cb63
--- /dev/null
+++ b/docs/help/in/op.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:op@
+
+Gives the channel operator privileges for the specified
+nick(s). Wildcards in the nick are allowed.
+
+See also: DEOP, MODE, VOICE, DEVOICE, KICK
+
diff --git a/docs/help/in/oper.in b/docs/help/in/oper.in
new file mode 100644
index 00000000..6cb6518c
--- /dev/null
+++ b/docs/help/in/oper.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:oper@
+
+Gives you operator priviledges if the correct nickname and
+password are given. If password is not given, you will be
+prompted for one. If no nickname is given, your current
+nickname will be used.
+
+See also: KILL, DIE
+
diff --git a/docs/help/in/part.in b/docs/help/in/part.in
new file mode 100644
index 00000000..ff3b12fb
--- /dev/null
+++ b/docs/help/in/part.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:part@
+
+Parts from the current or specified channel. Depending
+on your settings, closes the corresponding window, too.
+
+See also: LEAVE, JOIN
+
diff --git a/docs/help/in/perlflush.in b/docs/help/in/perlflush.in
new file mode 100644
index 00000000..0226d8d9
--- /dev/null
+++ b/docs/help/in/perlflush.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:perlflush@
+
+Stops and removes all Perl-scripts which have been run.
+
+See also: RUN
+
diff --git a/docs/help/in/ping.in b/docs/help/in/ping.in
new file mode 100644
index 00000000..3518b0c9
--- /dev/null
+++ b/docs/help/in/ping.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:ping@
+
+Sends CTCP PING to another IRC client. This is used
+to find out the speed of IRC network. When the PONG
+reply comes in, irssi shows the interval time between
+sending the request and receiving the reply.
+
+See also: CTCP
+
diff --git a/docs/help/in/query.in b/docs/help/in/query.in
new file mode 100644
index 00000000..818bbe64
--- /dev/null
+++ b/docs/help/in/query.in
@@ -0,0 +1,11 @@
+
+@SYNTAX:query@
+
+Starts a private conversation with the nick. All text you
+type that would normally be sent to your channel now goes to
+the specified nick in the form of MSGs.
+
+Usually this command opens up a new window, too.
+
+See also: WINDOW, MSG, SET QUERY
+
diff --git a/docs/help/in/quit.in b/docs/help/in/quit.in
new file mode 100644
index 00000000..f7536211
--- /dev/null
+++ b/docs/help/in/quit.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:quit@
+
+This ends your irc session. If a quit message is supplied, it
+will be displayed to anyone else on any channel you were on
+before quitting. If one isn't specified, the text "Leaving" is
+used.
+
+/EXIT does the same.
+
diff --git a/docs/help/in/quote.in b/docs/help/in/quote.in
new file mode 100644
index 00000000..2e92037b
--- /dev/null
+++ b/docs/help/in/quote.in
@@ -0,0 +1,5 @@
+
+@SYNTAX:quote@
+
+Sends server raw data without parsing.
+
diff --git a/docs/help/in/rawlog.in b/docs/help/in/rawlog.in
new file mode 100644
index 00000000..b863e234
--- /dev/null
+++ b/docs/help/in/rawlog.in
@@ -0,0 +1,15 @@
+
+@SYNTAX:rawlog@
+
+All data that is received or sent to server is kept in a raw log
+buffer for a while. Also event redirections are kept there. This is
+very useful for debugging purposes.
+
+/RAWLOG SAVE <filename> - Save the current raw log buffer to file
+/RAWLOG OPEN <filename> - Like /RAWLOG SAVE, but keep the log file
+ open and write all new log to it.
+/RAWLOG CLOSE - Close the open raw log
+
+/SET rawlog_lines <count> - Specify the number of raw log lines to
+ keep in memory.
+
diff --git a/docs/help/in/reconnect.in b/docs/help/in/reconnect.in
new file mode 100644
index 00000000..08c14689
--- /dev/null
+++ b/docs/help/in/reconnect.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:reconnect@
+
+You can reconnect to server with /RECONNECT <n>.
+
+/RECONNECT without any arguments will disconnect from the
+active server and reconnect back immediately.
+
+See also: SERVER, DISCONNECT
+
diff --git a/docs/help/in/reload.in b/docs/help/in/reload.in
new file mode 100644
index 00000000..e7b2a5b6
--- /dev/null
+++ b/docs/help/in/reload.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:reload@
+
+Reloads the irssi's configuration file.
+
+See also: SAVE
+
diff --git a/docs/help/in/restart.in b/docs/help/in/restart.in
new file mode 100644
index 00000000..7387b88c
--- /dev/null
+++ b/docs/help/in/restart.in
@@ -0,0 +1,12 @@
+
+@SYNTAX:restart@
+
+IRC Operator command.
+
+This command is used to completely restart the server. A side effect
+of this is that the configuration file will be read again. However,
+it is generally more useful for clearing out internal buffers and
+other wasted memory.
+
+See also: OPER, DIE
+
diff --git a/docs/help/in/rmreconns.in b/docs/help/in/rmreconns.in
new file mode 100644
index 00000000..e6e4e92c
--- /dev/null
+++ b/docs/help/in/rmreconns.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:rmreconns@
+
+Removes the pending reconnections from the reconnect list.
+
+See also: CONNECT, RECONNECT, SERVER
+
diff --git a/docs/help/in/rping.in b/docs/help/in/rping.in
new file mode 100644
index 00000000..e0623173
--- /dev/null
+++ b/docs/help/in/rping.in
@@ -0,0 +1,12 @@
+
+@SYNTAX:rping@
+
+IRC Operator command.
+
+This command works like the PING command (CTCP PING), except
+it is used on a server instead of a client. As with PING, it
+is used to test the relative distance another server is from
+you across the irc network.
+
+See also: OPER
+
diff --git a/docs/help/in/run.in b/docs/help/in/run.in
new file mode 100644
index 00000000..982808cb
--- /dev/null
+++ b/docs/help/in/run.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:run@
+
+Runs a perl-script. For more information, see the
+perl.txt in the docs-directory of irssi.
+
+See also: PERLFLUSH
diff --git a/docs/help/in/save.in b/docs/help/in/save.in
new file mode 100644
index 00000000..a6d5ea5b
--- /dev/null
+++ b/docs/help/in/save.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:save@
+
+Saves the current Irssi configuration into the configuration
+file.
+
+See also: RELOAD
+
diff --git a/docs/help/in/sconnect.in b/docs/help/in/sconnect.in
new file mode 100644
index 00000000..0f19d349
--- /dev/null
+++ b/docs/help/in/sconnect.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:sconnect@
+
+IRC Operator command. Makes an IRC server to connect
+to another server.
+
+See also: OPER, SQUIT, RESTART
+
diff --git a/docs/help/in/scrollback.in b/docs/help/in/scrollback.in
new file mode 100644
index 00000000..7da9b820
--- /dev/null
+++ b/docs/help/in/scrollback.in
@@ -0,0 +1,12 @@
+
+@SYNTAX:scrollback@
+
+/SCROLLBACK, or the default alias /SB:
+
+/SB CLEAR - Clear screen, free all memory used by texts in window.
+/SB HOME - Jump to start of the buffer
+/SB END - Jump to end of the buffer
+/SB GOTO [[-|+]line#|time] - Jump to specified line or timestamp.
+
+See also: SET SCROLL
+
diff --git a/docs/help/in/server.in b/docs/help/in/server.in
new file mode 100644
index 00000000..5453470d
--- /dev/null
+++ b/docs/help/in/server.in
@@ -0,0 +1,33 @@
+
+@SYNTAX:server@
+
+/SERVER ADD [-auto | -noauto] [-ircnet <ircnet>] [-host
+ <hostname>] [-cmdspeed <ms>] [-cmdmax <count>]
+ [-port <port>] <address> [<port> [<password>]]
+
+ -auto: Automatically connect to server at startup (default)
+ -noauto: Don't connect to server at startup
+ -ircnet: Specify what IRC network this server belongs to
+ -host: Specify what host name to use, if you have multiple
+ -cmdspeed: Same as /SET cmd_queue_speed, see section 3.1
+ -cmdmax: Same as /SET cmd_max_at_once, see section 3.1
+ -port: This is pretty much like the port argument later,
+ except this can be used to modify existing server's
+ port.
+
+/SERVER disconnects the server in active window and connects
+to the new one. It will take the same arguments as /CONNECT.
+If you prefix the address with the + character, Irssi won't
+disconnect the active server, and it will create a new window
+where the server is connected (ie. /window new hide;
+/connect address)
+
+/SERVER without any arguments displays the list of connected
+ servers.
+
+/SERVER REMOVE <address> [<port>]
+
+/SERVER LIST
+
+See also: RMRECONNS, DISCONNECT, RECONNECT
+
diff --git a/docs/help/in/servlist.in b/docs/help/in/servlist.in
new file mode 100644
index 00000000..cee9612d
--- /dev/null
+++ b/docs/help/in/servlist.in
@@ -0,0 +1,19 @@
+
+@SYNTAX:servlist@
+
+SERVLIST gives the list of services currently present on the
+IRC network. It can take two arguments.
+ <mask> limits the output to the services which names matches
+ the mask.
+ <type> limits the output to the services of the specified type.
+
+The fields returned are:
+ Service name.
+ Server who introduced the service.
+ Distribution mask.
+ Service type.
+ Hop count to the service.
+ A comment.
+
+See also: SQUERY
+
diff --git a/docs/help/in/set.in b/docs/help/in/set.in
new file mode 100644
index 00000000..f21f81af
--- /dev/null
+++ b/docs/help/in/set.in
@@ -0,0 +1,18 @@
+
+@SYNTAX:set@
+
+You can view or change the settings with /SET command.
+
+/SET without any arguments displays all the settings.
+/SET <key> displays settings whose key (partly) matches <key>
+/SET <key> <value> sets <key> to <value>
+
+Boolean settings accept only values ON, OFF and TOGGLE. You can
+also use /TOGGLE command to change them, so /TOGGLE <key> behaves
+like /SET <key> TOGGLE. /TOGGLE also accepts arguments ON and OFF
+when /TOGGLE behaves exactly like /SET.
+
+Remember that changes are not saved until you use /SAVE!
+
+See also: TOGGLE
+
diff --git a/docs/help/in/silence.in b/docs/help/in/silence.in
new file mode 100644
index 00000000..ff5d7c26
--- /dev/null
+++ b/docs/help/in/silence.in
@@ -0,0 +1,22 @@
+
+@SYNTAX:silence@
+
+Works only in the Undernet.
+
+SILENCE is similar in many respects to IGNORE, except that it is
+server-based. What this means is the server will never even send
+you messages from anyone you have SILENCEd, whereas it will with
+IGNORE, where your client is responsible for filtering the messages
+out. This has the advantage of not bogging your client down with
+excessive data as it tries to filter out messages.
+
+The default behavior is to SILENCE a nick!user@host pattern, and
+if such a pattern is not passed as the argument, it must be prepended
+with a plus ('+') to be added to your silence list. If a pattern is
+prepended with a minus ('-'), it will be removed from your silence list.
+If you only specify a nickname, you can list the patterns in the
+silence list owned by that nickname. If no arguments are given, your
+own silence list is displayed.
+
+See also: IGNORE
+
diff --git a/docs/help/in/squery.in b/docs/help/in/squery.in
new file mode 100644
index 00000000..05f9b294
--- /dev/null
+++ b/docs/help/in/squery.in
@@ -0,0 +1,5 @@
+
+@SYNTAX:squery@
+
+/SQUERY sends a query to specified service.
+
diff --git a/docs/help/in/squit.in b/docs/help/in/squit.in
new file mode 100644
index 00000000..64b8616c
--- /dev/null
+++ b/docs/help/in/squit.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:squit@
+
+IRC Operator command. Makes server to quit IRC network.
+
+See also: OPER, DIE, RESTART
+
diff --git a/docs/help/in/stats.in b/docs/help/in/stats.in
new file mode 100644
index 00000000..3afc6ebd
--- /dev/null
+++ b/docs/help/in/stats.in
@@ -0,0 +1,20 @@
+
+@SYNTAX:stats@
+
+Shows some irc server usage statistics.
+ c - Shows C and N lines for a given server. These are
+ the names of the servers that are allowed to connect.
+ h - Shows H and L lines for a given server (Hubs and Leaves).
+ k - Show K lines for a server. This shows who is not
+ allowed to connect and possibly at what time they are
+ not allowed to connect.
+ i - Shows I lines. This is who CAN connect to a server.
+ l - Shows information about amount of information passed
+ to servers and users.
+ m - Shows a count for the number of times the various
+ commands have been used since the server was booted.
+ o - Shows the list of authorized operators on the server.
+ u - Shows the uptime for a server
+ y - Shows Y lines, which lists the various connection
+ classes for a given server.
+
diff --git a/docs/help/in/time.in b/docs/help/in/time.in
new file mode 100644
index 00000000..7877fe75
--- /dev/null
+++ b/docs/help/in/time.in
@@ -0,0 +1,11 @@
+
+@SYNTAX:time@
+
+This displays the time of day, local to the server queried (thus,
+the time returned may not be the same as the client's local time).
+
+If the server name is omitted, the client's current server is used.
+If a nickname is given, that client's server is queried.
+
+Same as /DATE.
+
diff --git a/docs/help/in/toggle.in b/docs/help/in/toggle.in
new file mode 100644
index 00000000..19913061
--- /dev/null
+++ b/docs/help/in/toggle.in
@@ -0,0 +1,11 @@
+
+@SYNTAX:toggle@
+
+/TOGGLE <key> behaves like /SET <key> TOGGLE. /TOGGLE also
+accepts arguments ON and OFF when /TOGGLE behaves exactly
+like /SET.
+
+Remember that changes are not saved until you use /SAVE!
+
+See also: SET
+
diff --git a/docs/help/in/topic.in b/docs/help/in/topic.in
new file mode 100644
index 00000000..1c86ba31
--- /dev/null
+++ b/docs/help/in/topic.in
@@ -0,0 +1,6 @@
+
+@SYNTAX:topic@
+
+Shows or/and changes the topic of the current or specified
+channel.
+
diff --git a/docs/help/in/trace.in b/docs/help/in/trace.in
new file mode 100644
index 00000000..27df384c
--- /dev/null
+++ b/docs/help/in/trace.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:trace@
+
+Without a specified server it shows the current connections on
+the local server. If you specify a remote server it will show
+all servers between your current server and that remote server
+as well as the connections on that remote server.
+
diff --git a/docs/help/in/ts.in b/docs/help/in/ts.in
new file mode 100644
index 00000000..0f51f96d
--- /dev/null
+++ b/docs/help/in/ts.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:ts@
+
+Shows topics of all channels you're on.
+
+See also: CHANNEL, TOPIC
+
diff --git a/docs/help/in/unalias.in b/docs/help/in/unalias.in
new file mode 100644
index 00000000..d3b2e744
--- /dev/null
+++ b/docs/help/in/unalias.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:unalias@
+
+Removes an alias.
+
+See also: ALIAS
+
diff --git a/docs/help/in/unban.in b/docs/help/in/unban.in
new file mode 100644
index 00000000..797a33f4
--- /dev/null
+++ b/docs/help/in/unban.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:unban@
+
+Removes the specified ban(s) from the channel.
+
+See also: BAN, KNOCKOUT
+
diff --git a/docs/help/in/unignore.in b/docs/help/in/unignore.in
new file mode 100644
index 00000000..6b5c5559
--- /dev/null
+++ b/docs/help/in/unignore.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:unignore@
+
+Unignores the specified userhost mask.
+
+See also: IGNORE
+
diff --git a/docs/help/in/unnotify.in b/docs/help/in/unnotify.in
new file mode 100644
index 00000000..5d74ce80
--- /dev/null
+++ b/docs/help/in/unnotify.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:unnotify@
+
+Removes an entry from the notify list.
+
+See also: NOTIFY
+
diff --git a/docs/help/in/unquery.in b/docs/help/in/unquery.in
new file mode 100644
index 00000000..0d488c64
--- /dev/null
+++ b/docs/help/in/unquery.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:unquery@
+
+Removes a query window of specified nick.
+
+See also: QUERY, SET QUERY
+
diff --git a/docs/help/in/uping.in b/docs/help/in/uping.in
new file mode 100644
index 00000000..393d09d4
--- /dev/null
+++ b/docs/help/in/uping.in
@@ -0,0 +1,12 @@
+
+@SYNTAX:uping@
+
+IRC Operator command. Works only in the Undernet (ircu).
+
+This command works like the PING command (CTCP PING), except
+it is used on a server instead of a client. As with PING, it
+is used to test the relative distance another server is from
+you across the irc network.
+
+See also: RPING, OPER
+
diff --git a/docs/help/in/userhost.in b/docs/help/in/userhost.in
new file mode 100644
index 00000000..55073771
--- /dev/null
+++ b/docs/help/in/userhost.in
@@ -0,0 +1,5 @@
+
+@SYNTAX:userhost@
+
+Shows the userhost info of the specified nick.
+
diff --git a/docs/help/in/ver.in b/docs/help/in/ver.in
new file mode 100644
index 00000000..975fbf7a
--- /dev/null
+++ b/docs/help/in/ver.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:ver@
+
+Sends a CTCP VERSION request to the nick. This is used
+to find out which client and/or script the nick
+is using.
+
+See also: CTCP
+
diff --git a/docs/help/in/version.in b/docs/help/in/version.in
new file mode 100644
index 00000000..a7dd5c6f
--- /dev/null
+++ b/docs/help/in/version.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:version@
+
+Shows the version info of the current or specified
+IRC server.
+
+See also: ADMIN, STATS
+
diff --git a/docs/help/in/voice.in b/docs/help/in/voice.in
new file mode 100644
index 00000000..ee6f243e
--- /dev/null
+++ b/docs/help/in/voice.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:voice@
+
+Gives the voice (+v mode) to the nick(s) on the current channel.
+Wildcards in the nick are allowed.
+
+See also: DEVOICE, OP, DEOP
+
diff --git a/docs/help/in/wall.in b/docs/help/in/wall.in
new file mode 100644
index 00000000..82a21314
--- /dev/null
+++ b/docs/help/in/wall.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:wall@
+
+This command sends the given message to everyone on
+the network who has user mode +w turned on. If you
+are not an operator, you will probably receive
+an error message when using this command
+
+See also: OPER, WALLOPS
+
diff --git a/docs/help/in/wallchops.in b/docs/help/in/wallchops.in
new file mode 100644
index 00000000..76d39b3f
--- /dev/null
+++ b/docs/help/in/wallchops.in
@@ -0,0 +1,8 @@
+
+@SYNTAX:wallchops@
+
+Sends an message to all other channel operators of the
+current channel.
+
+See also:
+
diff --git a/docs/help/in/wallops.in b/docs/help/in/wallops.in
new file mode 100644
index 00000000..681f8201
--- /dev/null
+++ b/docs/help/in/wallops.in
@@ -0,0 +1,10 @@
+
+@SYNTAX:wallops@
+
+Sends a message to all operators currently on irc.
+This command has deteriorated to the point that it
+is no longer useful, and most OPERATORS have removed
+it from the server all together.
+
+See also: OPER, WALLCHOPS
+
diff --git a/docs/help/in/who.in b/docs/help/in/who.in
new file mode 100644
index 00000000..7885b29c
--- /dev/null
+++ b/docs/help/in/who.in
@@ -0,0 +1,13 @@
+
+@SYNTAX:who@
+
+Without parameters, shows all users and their user infos
+on the current channel. If you specify a channel, shows
+the all users of the given channel.
+
+If a channel is secret or private and you're not on it,
+you will be shown only those channel members, who do not
+have the invisible (+i) mode set.
+
+See also: WHOIS, CHANNEL
+
diff --git a/docs/help/in/whois.in b/docs/help/in/whois.in
new file mode 100644
index 00000000..55f3e330
--- /dev/null
+++ b/docs/help/in/whois.in
@@ -0,0 +1,15 @@
+
+@SYNTAX:whois@
+
+Shows whois information of the specified nick.
+By default, this is aliased to /WI.
+
+/WHOIS nick1 nick1 also queries the idle time of
+the user. This is aliased to /WII by default.
+
+If given nick is not in the IRC, irssi automatically
+sends a WHOWAS query. Read carefully the reply to see
+if it is a WHOIS or WHOWAS reply. :)
+
+See also: WHO, CHANNEL
+
diff --git a/docs/help/in/whowas.in b/docs/help/in/whowas.in
new file mode 100644
index 00000000..2c7c68bc
--- /dev/null
+++ b/docs/help/in/whowas.in
@@ -0,0 +1,19 @@
+
+@SYNTAX:whowas@
+
+This command is similar to WHOIS, except it returns information
+about nicknames that were recently in use. Like WHOIS, it shows
+the nickname, address, real name, and server. It may also return
+multiple entries if the nickname has been used recently by several
+people. These multiples may be limited by specifying a count to show.
+
+WHOWAS will work regardless of whether the queried nick is in use.
+If no arguments are given, the client's current nickname is used.
+
+Example: To show the last 5 users of the nickname JoeBob:
+
+/whowas joebob 5
+
+
+See also: WHOIS
+
diff --git a/docs/help/in/window.in b/docs/help/in/window.in
new file mode 100644
index 00000000..7af71dc4
--- /dev/null
+++ b/docs/help/in/window.in
@@ -0,0 +1,40 @@
+
+@SYNTAX:window@
+
+This command includes various subcommands for handling
+irssi windows.
+
+/WINDOW CLOSE
+ - Closes the current window.
+/WINDOW MOVE #NUMBER|PREV|NEXT
+ - Moves current window to another position in the
+ window list.
+/WINDOW GOTO #NUMBER
+ - Moves into the specified window.
+/WINDOW GOTO ACTIVE
+ - finds the first window with the higest
+ activity (msgs to you -> msgs -> rest). Alt-A is
+ the default shortcut key for this
+/WINDOW GOTO #CHANNEL|NICK|=NICK
+ - moves you to the window with the channel, query or
+ dcc chat.
+/WINDOW LEVEL [+/-]PUB/MSGS/...
+ - /window level msgs - creates messages window
+ - /window level all -msgs - creates status window
+/WINDOW NEW [HIDDEN|SPLIT]
+ - creates new hidden/splitted window,
+
+Window logging
+
+/WINDOW LOG ON|OFF|TOGGLE [<filename>]
+ - Start/stop logging the active window. This works exactly like
+ /LOG OPEN -window.
+/WINDOW LOGFILE <filename>
+ - Sets the default log file to use in the window, it can be
+ overridden by specifying the file name in /WINDOW LOG.
+ If no file name isn't given, Irssi defaults to
+ ~/irc.log.<windowname> or ~/irc.log.Window<ref#> if window
+ doesn't have a name.
+
+See also: SET CREATE, JOIN, QUERY, LOG
+
diff --git a/docs/help/in/wjoin.in b/docs/help/in/wjoin.in
new file mode 100644
index 00000000..8386e178
--- /dev/null
+++ b/docs/help/in/wjoin.in
@@ -0,0 +1,9 @@
+
+@SYNTAX:wjoin@
+
+With this you can join multiple channels in same
+window. This command does the same as /JOIN but
+it doesn't create a new window for the channel joined.
+
+See also: JOIN, WINDOW
+
diff --git a/docs/help/in/wquery.in b/docs/help/in/wquery.in
new file mode 100644
index 00000000..6a94e5b7
--- /dev/null
+++ b/docs/help/in/wquery.in
@@ -0,0 +1,7 @@
+
+@SYNTAX:wquery@
+
+Creates a query to the current window.
+
+See also: QUERY, WINDOW, SET AUTOCREATE
+
diff --git a/syntax.pl b/syntax.pl
new file mode 100755
index 00000000..af5a2b41
--- /dev/null
+++ b/syntax.pl
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+#
+# This script reads the syntaces of commands from irssi source tree.
+# Then it browses through all '.in' files in the current directory and
+# substitutes '@SYNTAX:foo@' tags with real syntaces found. This data
+# is written into the corresponding files without the '.in' extension.
+# For example: help.in -> ../help
+#
+# This path has to be changed. It should point to your irssi/src directory
+# Remember to include the asterisk ('*').
+$SRC_PATH='src/*';
+
+# This is quick and dirty, but works for sure :)
+$FOO = `grep -r -e '/* SYNTAX:' $SRC_PATH | sed 's/.*SYNTAX: //' > irssi_syntax`;
+while (<docs/help/in/*.in>) {
+ open (FILE, "$_");
+ @data = <FILE>;
+ close (FILE);
+ foreach $DATARIVI (@data) {
+ if ($DATARIVI =~ /\@SYNTAX\:(.+)\@/) {
+ $etsittava = "\U$1 ";
+ $SYNTAX = `grep \'^$etsittava\' irssi_syntax`;
+ $SYNTAX =~ s/\*\///g; $SYNTAX =~ s/ *$//;
+ $DATARIVI = $SYNTAX;
+ }
+ }
+ $newfilename = $_; $newfilename =~ s/\.in$//;
+ $newfilename =~ s/\/in\//\//;
+ open (NEWFILE, ">$newfilename");
+ print NEWFILE @data;
+ close (NEWFILE);
+}