summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-07-13 13:09:58 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-07-13 13:09:58 +0000
commita5a277c94d46c01c38cbe0130e7c7aaf1e79b958 (patch)
tree3577989d9961a3b7bf467224c6c58249c7a50caa
parent9eed52fa40664819c39fa264cc4b15ea06f9b4e5 (diff)
downloadirssi-a5a277c94d46c01c38cbe0130e7c7aaf1e79b958.zip
Compiles now statically to irssi with --with-modules=proxy
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1612 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/irc/proxy/Makefile.am9
-rw-r--r--src/irc/proxy/proxy.c21
2 files changed, 17 insertions, 13 deletions
diff --git a/src/irc/proxy/Makefile.am b/src/irc/proxy/Makefile.am
index 3bb8d742..4ce55006 100644
--- a/src/irc/proxy/Makefile.am
+++ b/src/irc/proxy/Makefile.am
@@ -1,10 +1,15 @@
moduledir = $(libdir)/irssi/modules
-module_LTLIBRARIES = libproxy.la
+module_LTLIBRARIES = libirc_proxy.la
INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/src/core/ \
-I$(top_srcdir)/src/irc/core/
-libproxy_la_SOURCES = \
+libirc_proxy.a:
+ $(LN_S) .libs/libirc_proxy.a libirc_proxy.a
+
+libirc_proxy_la_DEPENDENCIES = libirc_proxy.a
+
+libirc_proxy_la_SOURCES = \
proxy.c \
dump.c \
listen.c
diff --git a/src/irc/proxy/proxy.c b/src/irc/proxy/proxy.c
index ab7ef4cc..949df9f2 100644
--- a/src/irc/proxy/proxy.c
+++ b/src/irc/proxy/proxy.c
@@ -21,30 +21,29 @@
#include "module.h"
#include "settings.h"
#include "levels.h"
-#include "fe-common/core/printtext.h"
-void proxy_deinit(void)
+void irc_proxy_deinit(void)
{
plugin_proxy_listen_deinit();
}
-void proxy_init(void)
+void irc_proxy_init(void)
{
settings_add_str("irssiproxy", "irssiproxy_ports", "");
settings_add_str("irssiproxy", "irssiproxy_password", "");
if (*settings_get_str("irssiproxy_password") == '\0') {
/* no password - bad idea! */
- printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
- "Warning!! Password not specified, everyone can "
- "use this proxy! Use /set irssiproxy_password "
- "<password> to set it");
+ signal_emit("gui dialog", 2, "warning",
+ "Warning!! Password not specified, everyone can "
+ "use this proxy! Use /set irssiproxy_password "
+ "<password> to set it");
}
if (*settings_get_str("irssiproxy_ports") == '\0') {
- printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
- "No proxy ports specified. Use /SET "
- "irssiproxy_ports <ircnet>=<port> <ircnet2>=<port2> "
- "... to set them.");
+ signal_emit("gui dialog", 2, "warning",
+ "No proxy ports specified. Use /SET "
+ "irssiproxy_ports <ircnet>=<port> <ircnet2>=<port2> "
+ "... to set them.");
}
plugin_proxy_listen_init();