summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-ircnet.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-02-17 19:44:22 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-02-17 19:44:22 +0000
commitbe6ba53fa47bc546279a2575523281845fe80da9 (patch)
tree2f08f6281cfbd38a1df2abe4fe69ccfd6f208f51 /src/fe-common/irc/fe-ircnet.c
parent513e140bcebce617d6078a9532ab9976437c3ef6 (diff)
downloadirssi-be6ba53fa47bc546279a2575523281845fe80da9.zip
Config file: ircnets -> chatnets, added type = "chat protocol" to
chatnet config. Moved reading chatnets to core. Lots of other multiprotocol updates. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1237 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-ircnet.c')
-rw-r--r--src/fe-common/irc/fe-ircnet.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/fe-common/irc/fe-ircnet.c b/src/fe-common/irc/fe-ircnet.c
index cd7e5480..96092869 100644
--- a/src/fe-common/irc/fe-ircnet.c
+++ b/src/fe-common/irc/fe-ircnet.c
@@ -79,11 +79,11 @@ static void cmd_ircnet_list(void)
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_IRCNET_FOOTER);
}
-/* SYNTAX: IRCNET ADD [-kicks <count>] [-msgs <count>] [-modes <count>]
- [-whois <count>] [-cmdspeed <ms>] [-cmdmax <count>]
- [-querychans <count>] [-nick <nick>] [-user <user>]
- [-realname <name>] [-host <host>] [-autosendcmd <cmd>]
- <name> */
+/* SYNTAX: IRCNET ADD [-nick <nick>] [-user <user>] [-realname <name>]
+ [-host <host>] [-autosendcmd <cmd>]
+ [-querychans <count>] [-whois <count>] [-msgs <count>]
+ [-kicks <count>] [-modes <count>]
+ [-cmdspeed <ms>] [-cmdmax <count>] <name> */
static void cmd_ircnet_add(const char *data)
{
GHashTable *optlist;
@@ -176,6 +176,7 @@ static void cmd_ircnet(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *it
void fe_ircnet_init(void)
{
command_bind("ircnet", NULL, (SIGNAL_FUNC) cmd_ircnet);
+ command_bind("ircnet list", NULL, (SIGNAL_FUNC) cmd_ircnet_list);
command_bind("ircnet add", NULL, (SIGNAL_FUNC) cmd_ircnet_add);
command_bind("ircnet remove", NULL, (SIGNAL_FUNC) cmd_ircnet_remove);
@@ -185,6 +186,7 @@ void fe_ircnet_init(void)
void fe_ircnet_deinit(void)
{
command_unbind("ircnet", (SIGNAL_FUNC) cmd_ircnet);
+ command_unbind("ircnet list", (SIGNAL_FUNC) cmd_ircnet_list);
command_unbind("ircnet add", (SIGNAL_FUNC) cmd_ircnet_add);
command_unbind("ircnet remove", (SIGNAL_FUNC) cmd_ircnet_remove);
}