Adds a new network with the specified name.
</para></listitem></varlistentry>
- <varlistentry><term>ADDSERVER <network> <server> <port></term>
+ <varlistentry><term>ADDSERVER <network> <host>[:<port>] [<password>]</term>
<listitem><para>
- Adds a new server to the specified network with the specified type and options.</para>
+ Adds a new server to the specified network.</para>
- <para>Example: <command>addserver OPN irc.freenode.net 6667</command></para>
+ <para>Example: <command>addserver OPN irc.freenode.net:6667</command></para>
</listitem></varlistentry>
<varlistentry><term>BACKLOG [<channel>]</term>
<listitem>
<para>Without any arguments, the BACKLOG command replicates all the
- backlogs for the current channel.</para>
+ backlogs for the current network.</para>
<para>With one argument, the name of a channel, all lines on that
channel are replicated.</para>
</listitem></varlistentry>
+ <varlistentry><term>CHARSET <charset></term>
+ <listitem><para>Change client charset.</para></listitem>
+ </varlistentry>
+
<varlistentry><term>CONNECT <network></term>
- <listitem><para>Connect to the specifed network. Ctrlproxy will connect to the first known server for this network.</para></listitem></varlistentry>
+ <listitem><para>Connect to the specified network. Ctrlproxy will connect to the first known server for this network.</para></listitem></varlistentry>
<varlistentry><term>DELNETWORK <network></term>
<listitem><para>Detach client from the proxy.</para></listitem></varlistentry>
+ <varlistentry><term>ECHO text</term>
+ <listitem><para>Repeats specified text. useful mainly for debugging. </para></listitem>
+ </varlistentry>
+
<varlistentry><term>LISTNETWORKS</term>
<listitem><para>Prints out a list of all networks
ctrlproxy is connected to at the moment.</para></listitem></varlistentry>
- <varlistentry><term>NEXTSERVER</term>
+ <varlistentry><term>LOG_LEVEL [<level>]</term>
+ <listitem><para>Change log level if specified. If not specified
+ will print the current log level.</para></listitem>
+ </varlistentry>
+
+ <varlistentry><term>NEXTSERVER [<NETWORK>]</term>
<listitem><para>Makes the specified network disconnect from the current server and go to the next one.</para></listitem>
</varlistentry>
- <varlistentry><term>SAVECONFIG</term>
+ <varlistentry><term>SAVECONFIG [<path>]</term>
<listitem><para>Save the (updated) configuration to the location it was loaded from (usually <filename>$HOME/.ctrlproxy/</filename>).</para></listitem></varlistentry>
- <varlistentry><term>HELP</term>
+ <varlistentry><term>STARTLISTENER [<address>:]<port> <password> [<network>]</term>
+ <listitem><para>Add listener on specified port</para></listitem>
+ </varlistentry>
+
+ <varlistentry><term>STOPLISTENER [<address>:]<port></term>
+ <listitem><para>Stop listener on specified port</para></listitem>
+ </varlistentry>
+
+ <varlistentry><term>LISTLISTENER</term>
+ <listitem><para>List all listeners</para></listitem>
+ </varlistentry>
+
+
+ <varlistentry><term>HELP [<topic>]</term>
<listitem><para>Prints out list of available commands.</para></listitem></varlistentry>
}
const static struct admin_command listener_commands[] = {
- { "STARTLISTENER", cmd_start_listener, "[<address>:]<port> <password> [<network>]", "Add listener on specified port" },
- { "STOPLISTENER", cmd_stop_listener, "[<address>:]<port>", "Stop listener on specified port" },
- { "LISTLISTENER", cmd_list_listener, "", "Add new network with specified name" },
+ { "STARTLISTENER", cmd_start_listener },
+ { "STOPLISTENER", cmd_stop_listener },
+ { "LISTLISTENER", cmd_list_listener },
{ NULL }
};
}
const static struct admin_command builtin_commands[] = {
- { "ADDNETWORK", add_network, "<name>", "Add new network with specified name" },
- { "ADDSERVER", add_server, "<network> <host>[:<port>] [<password>]", "Add server to network" },
- { "BACKLOG", repl_command, "[channel]", "Send backlogs for this network or a channel, if specified" },
- { "CONNECT", com_connect_network, "<network>", "Connect to specified network. Forces reconnect when waiting." },
- { "DELNETWORK", del_network, "<network>", "Remove specified network" },
- { "ECHO", cmd_echo, "<DATA>", "Simple echo command" },
- { "LOG_LEVEL", cmd_log_level, "[level]", "Change/Show log level" },
- { "NEXTSERVER", com_next_server, "[network]", "Disconnect and use to the next server in the list" },
- { "CHARSET", handle_charset, "<charset>", "Change client charset" },
- { "DIE", handle_die, "", "Exit ctrlproxy" },
- { "DISCONNECT", com_disconnect_network, "<network>", "Disconnect specified network" },
- { "LISTNETWORKS", list_networks, "", "List current networks and their status" },
- { "SAVECONFIG", com_save_config, "<name>", "Save current XML configuration to specified file" },
- { "DETACH", detach_client, "", "Detach current client" },
- { "HELP", cmd_help, "[command]", "This help command" },
- { "DUMPJOINEDCHANNELS", dump_joined_channels, "[network]", NULL, NULL },
+ { "ADDNETWORK", add_network },
+ { "ADDSERVER", add_server },
+ { "BACKLOG", repl_command },
+ { "CONNECT", com_connect_network },
+ { "DELNETWORK", del_network },
+ { "ECHO", cmd_echo },
+ { "LOG_LEVEL", cmd_log_level },
+ { "NEXTSERVER", com_next_server },
+ { "CHARSET", handle_charset },
+ { "DIE", handle_die },
+ { "DISCONNECT", com_disconnect_network },
+ { "LISTNETWORKS", list_networks },
+ { "SAVECONFIG", com_save_config },
+ { "DETACH", detach_client },
+ { "HELP", cmd_help },
+ { "DUMPJOINEDCHANNELS" },
#ifdef DEBUG
- { "ABORT", do_abort, "", NULL, NULL },
+ { "ABORT", do_abort },
#endif
{ NULL }
};