mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
Added no_connect to SERVER_CONNECT_REC, also exported a few other variables
to perl. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3042 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
45f86f7b5f
commit
27f54e286f
3 changed files with 11 additions and 0 deletions
|
|
@ -30,5 +30,6 @@ unsigned int reconnection:1; /* we're trying to reconnect */
|
|||
unsigned int no_autojoin_channels:1; /* don't autojoin any channels */
|
||||
unsigned int unix_socket:1; /* Connect using named unix socket */
|
||||
unsigned int use_ssl:1; /* this connection uses SSL */
|
||||
unsigned int no_connect:1; /* don't connect() at all, it's done by plugin */
|
||||
char *channels;
|
||||
char *away_reason;
|
||||
|
|
|
|||
|
|
@ -178,6 +178,9 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
|
|||
|
||||
signal_emit("server connecting", 2, server, ip);
|
||||
|
||||
if (server->connrec->no_connect)
|
||||
return;
|
||||
|
||||
if (ip != NULL) {
|
||||
own_ip = ip == NULL ? NULL :
|
||||
(IPADDR_IS_V6(ip) ? server->connrec->own_ip6 :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue