summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-08-19 18:47:41 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-08-19 18:47:41 +0000
commit6e54baaa0cb1b55d86e162991ce236da29379058 (patch)
treec14c19715695729fab20f113005f8140ca8a616d /src/fe-common/irc
parent591161b34e5c31f80ceb9467428f1b07feea5050 (diff)
downloadirssi-6e54baaa0cb1b55d86e162991ce236da29379058.zip
/network fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3275 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-ircnet.c28
1 files changed, 14 insertions, 14 deletions
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 <count>] [-whois <count>] [-msgs <count>]
[-kicks <count>] [-modes <count>]
[-cmdspeed <ms>] [-cmdmax <count>] <name> */
-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 <network> */
-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);
}