mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Add -noautosendcmd to /SERVER and /CONNECT.
Passing this option will force Irssi to not execute the content of the autosendcmd chatnet-setting upon connect. Fixes: #738 git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5209 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
518b822db4
commit
796134ffbd
7 changed files with 14 additions and 5 deletions
|
|
@ -118,12 +118,11 @@ static void sig_connected(SERVER_REC *server)
|
|||
|
||||
g_return_if_fail(IS_SERVER(server));
|
||||
|
||||
if (server->connrec->chatnet == NULL || server->session_reconnect ||
|
||||
server->connrec->no_autojoin_channels)
|
||||
if (server->connrec->chatnet == NULL || server->session_reconnect)
|
||||
return;
|
||||
|
||||
rec = chatnet_find(server->connrec->chatnet);
|
||||
if (rec != NULL && rec->autosendcmd)
|
||||
if (!server->connrec->no_autosendcmd && rec != NULL && rec->autosendcmd)
|
||||
eval_special_string(rec->autosendcmd, "", server, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue