From 6e54baaa0cb1b55d86e162991ce236da29379058 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 19 Aug 2004 18:47:41 +0000 Subject: /network fixes git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3275 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-ircnet.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/fe-common/irc') diff --git a/src/fe-common/irc/fe-ircnet.c b/src/fe-common/irc/fe-ircnet.c index 371ae0bf..9990d836 100644 --- a/src/fe-common/irc/fe-ircnet.c +++ b/src/fe-common/irc/fe-ircnet.c @@ -30,7 +30,7 @@ #include "irc-chatnets.h" #include "printtext.h" -static void cmd_ircnet_list(void) +static void cmd_network_list(void) { GString *str; GSList *tmp; @@ -86,7 +86,7 @@ static void cmd_ircnet_list(void) [-querychans ] [-whois ] [-msgs ] [-kicks ] [-modes ] [-cmdspeed ] [-cmdmax ] */ -static void cmd_ircnet_add(const char *data) +static void cmd_network_add(const char *data) { GHashTable *optlist; char *name, *value; @@ -155,7 +155,7 @@ static void cmd_ircnet_add(const char *data) } /* SYNTAX: NETWORK REMOVE */ -static void cmd_ircnet_remove(const char *data) +static void cmd_network_remove(const char *data) { IRC_CHATNET_REC *rec; @@ -170,28 +170,28 @@ static void cmd_ircnet_remove(const char *data) } } -static void cmd_ircnet(const char *data, SERVER_REC *server, WI_ITEM_REC *item) +static void cmd_network(const char *data, SERVER_REC *server, WI_ITEM_REC *item) { if (*data == '\0') - cmd_ircnet_list(); + cmd_network_list(); else - command_runsub("ircnet", data, server, item); + command_runsub("network", data, server, item); } void fe_ircnet_init(void) { - command_bind("network", NULL, (SIGNAL_FUNC) cmd_ircnet); - command_bind("network list", NULL, (SIGNAL_FUNC) cmd_ircnet_list); - command_bind("network add", NULL, (SIGNAL_FUNC) cmd_ircnet_add); - command_bind("network remove", NULL, (SIGNAL_FUNC) cmd_ircnet_remove); + command_bind("network", NULL, (SIGNAL_FUNC) cmd_network); + command_bind("network list", NULL, (SIGNAL_FUNC) cmd_network_list); + command_bind("network add", NULL, (SIGNAL_FUNC) cmd_network_add); + command_bind("network remove", NULL, (SIGNAL_FUNC) cmd_network_remove); command_set_options("network add", "-kicks -msgs -modes -whois -cmdspeed -cmdmax -nick -user -realname -host -autosendcmd -querychans -usermode"); } void fe_ircnet_deinit(void) { - command_unbind("network", (SIGNAL_FUNC) cmd_ircnet); - command_unbind("network list", (SIGNAL_FUNC) cmd_ircnet_list); - command_unbind("network add", (SIGNAL_FUNC) cmd_ircnet_add); - command_unbind("network remove", (SIGNAL_FUNC) cmd_ircnet_remove); + command_unbind("network", (SIGNAL_FUNC) cmd_network); + command_unbind("network list", (SIGNAL_FUNC) cmd_network_list); + command_unbind("network add", (SIGNAL_FUNC) cmd_network_add); + command_unbind("network remove", (SIGNAL_FUNC) cmd_network_remove); } -- cgit v1.2.3