diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-08-17 13:23:31 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-08-17 13:23:31 +0000 |
commit | 487d776b87cdefa42430dce650bac4be215af5a6 (patch) | |
tree | 2d6856f657acb96879f6fe6a6913a43e430dc4ca /src/common/session.c | |
parent | 9f88f68e3b350256fe964ba73175400e0e8572e3 (diff) | |
download | weechat-487d776b87cdefa42430dce650bac4be215af5a6.zip |
Added IRC command 329 (channel creation date)
Diffstat (limited to 'src/common/session.c')
-rw-r--r-- | src/common/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/session.c b/src/common/session.c index 788d1bda8..59156dfa4 100644 --- a/src/common/session.c +++ b/src/common/session.c @@ -176,6 +176,7 @@ session_save_channel (FILE *file, t_irc_channel *channel) rc = rc && (session_write_str (file, SESSION_CHAN_AWAY_MESSAGE, channel->away_message)); rc = rc && (session_write_int (file, SESSION_CHAN_CYCLE, channel->cycle)); rc = rc && (session_write_int (file, SESSION_CHAN_CLOSE, channel->close)); + rc = rc && (session_write_int (file, SESSION_CHAN_DISPLAY_CREATION_DATE, channel->display_creation_date)); rc = rc && (session_write_id (file, SESSION_CHAN_END)); if (!rc) @@ -1072,6 +1073,9 @@ session_load_channel (FILE *file) case SESSION_CHAN_CLOSE: rc = rc && (session_read_int (file, &(session_current_channel->close))); break; + case SESSION_CHAN_DISPLAY_CREATION_DATE: + rc = rc && (session_read_int (file, &(session_current_channel->display_creation_date))); + break; default: weechat_log_printf (_("session: warning: ignoring value from " "channel (object id: %d)\n")); |