mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Less kludgy way to handle /SET skip_motd. Works now with laggy servers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2937 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3a7f566173
commit
01c9fddeba
3 changed files with 11 additions and 2 deletions
|
|
@ -867,8 +867,7 @@ static void event_motd(IRC_SERVER_REC *server, const char *data,
|
|||
{
|
||||
/* don't ignore motd anymore after 3 seconds of connection time -
|
||||
we might have called /MOTD */
|
||||
if (settings_get_bool("skip_motd") &&
|
||||
time(NULL)-3 <= server->real_connect_time)
|
||||
if (settings_get_bool("skip_motd") && !server->motd_got)
|
||||
return;
|
||||
|
||||
print_event_received(server, data, nick, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue