mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 21:06:38 +02:00
Fixed minor bug with session reload (nicks count for channels now ok)
This commit is contained in:
@@ -1012,6 +1012,8 @@ session_load_channel (FILE *file)
|
||||
break;
|
||||
case SESSION_CHAN_NICKS_COUNT:
|
||||
rc = rc && (session_read_int (file, &(session_current_channel->nicks_count)));
|
||||
/* will be incremented when adding nicks */
|
||||
session_current_channel->nicks_count = 0;
|
||||
break;
|
||||
case SESSION_CHAN_CHECKING_AWAY:
|
||||
rc = rc && (session_read_int (file, &(session_current_channel->checking_away)));
|
||||
|
||||
@@ -1012,6 +1012,8 @@ session_load_channel (FILE *file)
|
||||
break;
|
||||
case SESSION_CHAN_NICKS_COUNT:
|
||||
rc = rc && (session_read_int (file, &(session_current_channel->nicks_count)));
|
||||
/* will be incremented when adding nicks */
|
||||
session_current_channel->nicks_count = 0;
|
||||
break;
|
||||
case SESSION_CHAN_CHECKING_AWAY:
|
||||
rc = rc && (session_read_int (file, &(session_current_channel->checking_away)));
|
||||
|
||||
Reference in New Issue
Block a user