1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00
irssi/src/fe-common/irc/fe-common-irc.c
Timo Sirainen d346fbe1a9 Better !channel support - window items now have "visual_name" and channels
and queries also have "name". Normally they're identical but with !channels
the visible_name contains the short !channel name, while name contains
full !ABCDEchannel name.

The visible_name should be used whenever displaying the channel name, or as
printtext()'s target. So, this breaks a few scripts in !channels, they need
to be modified to use $channel->{visible_name} instead.

Also /LAYOUT SAVE should finally work properly with !channels.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-16 00:34:37 +00:00

115 lines
2.6 KiB
C

/*
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"
#include "modules.h"
#include "module-formats.h"
#include "signals.h"
#include "misc.h"
#include "lib-config/iconfig.h"
#include "settings.h"
#include "themes.h"
#include "fe-irc-server.h"
void fe_irc_modules_init(void);
void fe_irc_modules_deinit(void);
void fe_irc_channels_init(void);
void fe_irc_channels_deinit(void);
void fe_irc_queries_init(void);
void fe_irc_queries_deinit(void);
void fe_irc_layout_init(void);
void fe_irc_layout_deinit(void);
void fe_irc_messages_init(void);
void fe_irc_messages_deinit(void);
void fe_irc_commands_init(void);
void fe_irc_commands_deinit(void);
void fe_ircnet_init(void);
void fe_ircnet_deinit(void);
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);
void fe_modes_init(void);
void fe_modes_deinit(void);
void fe_netsplit_init(void);
void fe_netsplit_deinit(void);
void fe_netjoin_init(void);
void fe_netjoin_deinit(void);
void fe_common_irc_init(void)
{
settings_add_bool("lookandfeel", "show_away_once", TRUE);
theme_register(fecommon_irc_formats);
fe_irc_channels_init();
fe_irc_queries_init();
fe_irc_messages_init();
fe_irc_commands_init();
fe_ircnet_init();
fe_irc_server_init();
fe_ctcp_init();
fe_events_init();
fe_events_numeric_init();
fe_modes_init();
fe_netsplit_init();
fe_netjoin_init();
settings_check();
module_register("core", "fe-irc");
fe_irc_modules_init();
}
void fe_common_irc_deinit(void)
{
fe_irc_modules_deinit();
fe_irc_channels_deinit();
fe_irc_queries_deinit();
fe_irc_messages_deinit();
fe_irc_commands_deinit();
fe_ircnet_deinit();
fe_irc_server_deinit();
fe_ctcp_deinit();
fe_events_deinit();
fe_events_numeric_deinit();
fe_modes_deinit();
fe_netsplit_deinit();
fe_netjoin_deinit();
theme_unregister();
}