1
0
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:
Sebastien Helleu
2005-12-11 14:33:02 +00:00
parent 54baad1848
commit ceaf9fa287
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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)));
+2
View File
@@ -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)));