mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
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
This commit is contained in:
parent
9eed52fa40
commit
a5a277c94d
2 changed files with 17 additions and 13 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue