2000-04-26 04:03:38 -04:00
|
|
|
/*
|
|
|
|
fe-common-irc.c : irssi
|
|
|
|
|
|
|
|
Copyright (C) 1999-2000 Timo Sirainen
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "module.h"
|
2001-12-19 21:18:35 -05:00
|
|
|
#include "modules.h"
|
2000-05-15 04:25:45 -04:00
|
|
|
#include "module-formats.h"
|
2000-04-26 04:03:38 -04:00
|
|
|
#include "signals.h"
|
|
|
|
#include "misc.h"
|
|
|
|
#include "lib-config/iconfig.h"
|
|
|
|
#include "settings.h"
|
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
#include "themes.h"
|
2002-05-15 20:34:37 -04:00
|
|
|
#include "fe-irc-server.h"
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-05-25 07:30:47 -04:00
|
|
|
void fe_irc_modules_init(void);
|
|
|
|
void fe_irc_modules_deinit(void);
|
|
|
|
|
2000-09-02 14:53:58 -04:00
|
|
|
void fe_irc_channels_init(void);
|
|
|
|
void fe_irc_channels_deinit(void);
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-12-16 21:20:22 -05:00
|
|
|
void fe_irc_queries_init(void);
|
|
|
|
void fe_irc_queries_deinit(void);
|
|
|
|
|
2002-04-27 16:13:27 -04:00
|
|
|
void fe_irc_layout_init(void);
|
|
|
|
void fe_irc_layout_deinit(void);
|
|
|
|
|
2001-01-01 11:57:25 -05:00
|
|
|
void fe_irc_messages_init(void);
|
|
|
|
void fe_irc_messages_deinit(void);
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
void fe_irc_commands_init(void);
|
|
|
|
void fe_irc_commands_deinit(void);
|
|
|
|
|
2000-06-04 10:52:47 -04:00
|
|
|
void fe_ircnet_init(void);
|
|
|
|
void fe_ircnet_deinit(void);
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
void fe_ctcp_init(void);
|
|
|
|
void fe_ctcp_deinit(void);
|
|
|
|
|
|
|
|
void fe_events_init(void);
|
|
|
|
void fe_events_deinit(void);
|
|
|
|
|
|
|
|
void fe_events_numeric_init(void);
|
|
|
|
void fe_events_numeric_deinit(void);
|
|
|
|
|
2000-11-30 20:00:28 -05:00
|
|
|
void fe_modes_init(void);
|
|
|
|
void fe_modes_deinit(void);
|
|
|
|
|
2000-05-04 06:32:42 -04:00
|
|
|
void fe_netsplit_init(void);
|
|
|
|
void fe_netsplit_deinit(void);
|
|
|
|
|
2000-07-02 12:19:26 -04:00
|
|
|
void fe_netjoin_init(void);
|
|
|
|
void fe_netjoin_deinit(void);
|
|
|
|
|
2002-10-14 12:12:01 -04:00
|
|
|
void irc_completion_init(void);
|
|
|
|
void irc_completion_deinit(void);
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
void fe_common_irc_init(void)
|
|
|
|
{
|
|
|
|
settings_add_bool("lookandfeel", "show_away_once", TRUE);
|
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
theme_register(fecommon_irc_formats);
|
|
|
|
|
2000-09-02 14:53:58 -04:00
|
|
|
fe_irc_channels_init();
|
2000-12-16 21:20:22 -05:00
|
|
|
fe_irc_queries_init();
|
2001-01-01 11:57:25 -05:00
|
|
|
fe_irc_messages_init();
|
2000-04-26 04:03:38 -04:00
|
|
|
fe_irc_commands_init();
|
2000-06-04 10:52:47 -04:00
|
|
|
fe_ircnet_init();
|
2000-05-04 06:32:42 -04:00
|
|
|
fe_irc_server_init();
|
2000-04-26 04:03:38 -04:00
|
|
|
fe_ctcp_init();
|
|
|
|
fe_events_init();
|
|
|
|
fe_events_numeric_init();
|
2000-11-30 20:00:28 -05:00
|
|
|
fe_modes_init();
|
2000-05-04 06:32:42 -04:00
|
|
|
fe_netsplit_init();
|
2000-07-02 12:19:26 -04:00
|
|
|
fe_netjoin_init();
|
2002-10-14 12:12:01 -04:00
|
|
|
irc_completion_init();
|
2000-05-25 07:30:47 -04:00
|
|
|
|
2000-12-17 00:44:45 -05:00
|
|
|
settings_check();
|
2001-08-13 20:41:59 -04:00
|
|
|
module_register("core", "fe-irc");
|
|
|
|
|
|
|
|
fe_irc_modules_init();
|
2000-04-26 04:03:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void fe_common_irc_deinit(void)
|
|
|
|
{
|
2000-05-25 07:30:47 -04:00
|
|
|
fe_irc_modules_deinit();
|
|
|
|
|
2000-09-02 14:53:58 -04:00
|
|
|
fe_irc_channels_deinit();
|
2000-12-16 21:20:22 -05:00
|
|
|
fe_irc_queries_deinit();
|
2001-01-01 11:57:25 -05:00
|
|
|
fe_irc_messages_deinit();
|
2000-04-26 04:03:38 -04:00
|
|
|
fe_irc_commands_deinit();
|
2000-06-04 10:52:47 -04:00
|
|
|
fe_ircnet_deinit();
|
2000-05-04 06:32:42 -04:00
|
|
|
fe_irc_server_deinit();
|
2000-04-26 04:03:38 -04:00
|
|
|
fe_ctcp_deinit();
|
|
|
|
fe_events_deinit();
|
|
|
|
fe_events_numeric_deinit();
|
2000-11-30 20:00:28 -05:00
|
|
|
fe_modes_deinit();
|
2000-05-04 06:32:42 -04:00
|
|
|
fe_netsplit_deinit();
|
2000-07-02 12:19:26 -04:00
|
|
|
fe_netjoin_deinit();
|
2002-10-14 12:12:01 -04:00
|
|
|
irc_completion_deinit();
|
2000-05-15 04:25:45 -04:00
|
|
|
|
|
|
|
theme_unregister();
|
2000-04-26 04:03:38 -04:00
|
|
|
}
|