{ address = "silc.silcnet.org"; chatnet = SILCNet; port = 706; },
{ address = "silc.ytti.fi"; chatnet = SILCNet; port = 706; },
{ address = "silc.peelo.com"; chatnet = SILCNet; port = 706; },
- { address = "silc.silcnet.org"; chatnet = SILCNet; port = 707; }
);
chatnets = {
#define IRSSI_DIR_SHORT "~/.silc"
#define IRSSI_DIR_FULL "%s/.silc" /* %s == g_get_home_dir() */
+#define IRSSI_GLOBAL_CONFIG "silc.conf" /* config file name in /etc/ */
+#define IRSSI_HOME_CONFIG "silc.conf" /* config file name in ~/.irssi/ */
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
if (irssi_dir == NULL)
irssi_dir = g_strdup_printf(IRSSI_DIR_FULL, g_get_home_dir());
if (irssi_config_file == NULL)
- irssi_config_file = g_strdup_printf("%s/config", irssi_dir);
+ irssi_config_file = g_strdup_printf("%s/"IRSSI_HOME_CONFIG, irssi_dir);
session_set_binary(argv[0]);
}
else {
/* user configuration file not found, use the default one
from sysconfdir */
- path = SYSCONFDIR"/irssi.conf";
+ path = SYSCONFDIR"/"IRSSI_GLOBAL_CONFIG;
if (stat(path, &statbuf) != 0) {
/* no configuration file in sysconfdir ..
use the build-in configuration */
if (window == NULL) {
g_return_if_fail(next_xpos != -1);
- attr |= fg > 0 ? fg : ATTR_RESETFG;
- attr |= bg > 0 ? (bg << 4) : ATTR_RESETBG;
+ attr |= fg >= 0 ? fg : ATTR_RESETFG;
+ attr |= bg >= 0 ? (bg << 4) : ATTR_RESETBG;
term_set_color(root_window, attr);
term_move(root_window, next_xpos, next_ypos);
{
if (term_detached) return;
- term_set_color(root_window, 0);
+ term_set_color(root_window, ATTR_RESET);
terminfo_clear();
term_move_reset(0, 0);
if ((cmd & LINE_COLOR_DEFAULT) == 0)
*color |= (cmd & 0x0f) << 4;
else {
- *color |= ATTR_RESETBG;
+ *color = (*color & FGATTR) | ATTR_RESETBG;
if (cmd & LINE_COLOR_BLINK)
*color |= ATTR_BLINK;
}
if ((cmd & LINE_COLOR_DEFAULT) == 0)
*color |= cmd & 0x0f;
else {
- *color |= ATTR_RESETFG;
+ *color = (*color & BGATTR) | ATTR_RESETFG;
if (cmd & LINE_COLOR_BOLD)
*color |= ATTR_BOLD;
}
moduledir = $(silc_modulesdir)
+perl_dirs = common ui textui
+
module_LTLIBRARIES = $(perl_module_lib) $(perl_module_fe_lib)
noinst_LTLIBRARIES = $(perl_static_lib) $(perl_static_fe_lib)
EXTRA_LTLIBRARIES = \
$(textui_sources)
all-local:
- for dir in common ui textui; do \
+ for dir in $(perl_dirs); do \
cd $$dir && \
if [ ! -f Makefile ]; then \
$(perlpath) Makefile.PL $(PERL_MM_PARAMS); \
done
install-exec-local:
- for dir in common ui textui; do \
+ for dir in $(perl_dirs); do \
cd $$dir && $(MAKE) install && cd ..; \
done
clean-generic:
- rm -f common/Makefile ui/Makefile textui/Makefile
+ for dir in $(perl_dirs); do rm -f $$dir/Makefile; done
distclean-generic:
- -(cd common && $(MAKE) realclean && rm -f Makefile.PL)
- -(cd ui && $(MAKE) realclean && rm -f Makefile.PL)
- -(cd textui && $(MAKE) realclean && rm -f Makefile.PL)
+ for dir in $(perl_dirs); do \
+ cd $$dir; \
+ $(MAKE) realclean; rm -f Makefile.PL; \
+ cd ..; \
+ done
libperl_core_la_LIBADD = $(PERL_LDFLAGS)
return g_malloc0(sizeof(SILC_SERVER_CONNECT_REC));
}
+static void destroy_server_connect(SERVER_CONNECT_REC *conn)
+{
+
+}
+
/* Checks user information and saves them to the config file it they
do not exist there already. */
rec->create_server_setup = create_server_setup;
rec->create_channel_setup = create_channel_setup;
rec->create_server_connect = create_server_connect;
+ rec->destroy_server_connect = destroy_server_connect;
rec->server_connect = (SERVER_REC *(*) (SERVER_CONNECT_REC *))
silc_server_connect;
rec->channel_create = (CHANNEL_REC *(*) (SERVER_REC *, const char *, int))