summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-irc-server.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-10-21 19:03:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-10-21 19:03:47 +0000
commit37995ea05f77d8ef0fe429362e526e0de7080502 (patch)
tree9ebbeca9b22144003995570b284e8f7e14b4c17d /src/fe-common/irc/fe-irc-server.c
parentfe4cdce6e6c442f502349304ef35f2ac2680a1b0 (diff)
downloadirssi-37995ea05f77d8ef0fe429362e526e0de7080502.zip
/SERVER and /DISCONNECT handlers moved from irc to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2969 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-irc-server.c')
-rw-r--r--src/fe-common/irc/fe-irc-server.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/fe-common/irc/fe-irc-server.c b/src/fe-common/irc/fe-irc-server.c
index a3253cec..44563000 100644
--- a/src/fe-common/irc/fe-irc-server.c
+++ b/src/fe-common/irc/fe-irc-server.c
@@ -119,22 +119,9 @@ static void cmd_server_list(const char *data)
g_string_free(str, TRUE);
}
-static void server_command(const char *data, SERVER_REC *server,
- WI_ITEM_REC *item)
-{
- if (server == NULL) {
- /* this command accepts non-connected server too */
- server = active_win->connect_server;
- }
-
- signal_continue(3, data, server, item);
-}
-
void fe_irc_server_init(void)
{
signal_add("server add fill", (SIGNAL_FUNC) sig_server_add_fill);
- command_bind_first("server", NULL, (SIGNAL_FUNC) server_command);
- command_bind_first("disconnect", NULL, (SIGNAL_FUNC) server_command);
command_bind("server list", NULL, (SIGNAL_FUNC) cmd_server_list);
command_set_options("server add", "-ircnet -cmdspeed -cmdmax -querychans");
@@ -143,7 +130,5 @@ void fe_irc_server_init(void)
void fe_irc_server_deinit(void)
{
signal_remove("server add fill", (SIGNAL_FUNC) sig_server_add_fill);
- command_unbind("server", (SIGNAL_FUNC) server_command);
- command_unbind("disconnect", (SIGNAL_FUNC) server_command);
command_unbind("server list", (SIGNAL_FUNC) cmd_server_list);
}