summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/session.c4
-rw-r--r--src/common/session.h3
-rw-r--r--src/irc/irc-server.c1
3 files changed, 7 insertions, 1 deletions
diff --git a/src/common/session.c b/src/common/session.c
index f73e3c110..3b4829b2e 100644
--- a/src/common/session.c
+++ b/src/common/session.c
@@ -253,6 +253,7 @@ session_save_servers (FILE *file)
#endif
rc = rc && (session_write_str (file, SESSION_SERV_UNTERMINATED_MESSAGE, ptr_server->unterminated_message));
rc = rc && (session_write_str (file, SESSION_SERV_NICK, ptr_server->nick));
+ rc = rc && (session_write_str (file, SESSION_SERV_NICK_MODES, ptr_server->nick_modes));
rc = rc && (session_write_buf (file, SESSION_SERV_RECONNECT_START, &(ptr_server->reconnect_start), sizeof (time_t)));
rc = rc && (session_write_int (file, SESSION_SERV_RECONNECT_JOIN, ptr_server->reconnect_join));
rc = rc && (session_write_int (file, SESSION_SERV_IS_AWAY, ptr_server->is_away));
@@ -931,6 +932,9 @@ session_load_server (FILE *file)
case SESSION_SERV_NICK:
rc = rc && (session_read_str (file, &(session_current_server->nick)));
break;
+ case SESSION_SERV_NICK_MODES:
+ rc = rc && (session_read_str (file, &(session_current_server->nick_modes)));
+ break;
case SESSION_SERV_RECONNECT_START:
rc = rc && (session_read_buf (file, &(session_current_server->reconnect_start), sizeof (time_t)));
break;
diff --git a/src/common/session.h b/src/common/session.h
index 143f504f0..3d35c461a 100644
--- a/src/common/session.h
+++ b/src/common/session.h
@@ -89,7 +89,8 @@ enum t_session_server
SESSION_SERV_CHARSET_DECODE_ISO,
SESSION_SERV_CHARSET_DECODE_UTF,
SESSION_SERV_CHARSET_ENCODE,
- SESSION_SERV_HOSTNAME
+ SESSION_SERV_HOSTNAME,
+ SESSION_SERV_NICK_MODES
};
enum t_session_channel
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c
index a957ef925..09b97100a 100644
--- a/src/irc/irc-server.c
+++ b/src/irc/irc-server.c
@@ -1917,6 +1917,7 @@ server_print_log (t_irc_server *server)
weechat_log_printf (" ssl_connected . . . : %d\n", server->ssl_connected);
weechat_log_printf (" unterminated_message: '%s'\n", server->unterminated_message);
weechat_log_printf (" nick. . . . . . . . : '%s'\n", server->nick);
+ weechat_log_printf (" nick_modes. . . . . : '%s'\n", server->nick_modes);
weechat_log_printf (" reconnect_start . . : %ld\n", server->reconnect_start);
weechat_log_printf (" reconnect_join. . . : %d\n", server->reconnect_join);
weechat_log_printf (" is_away . . . . . . : %d\n", server->is_away);