diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-05-15 12:48:50 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-05-15 12:48:50 +0200 |
commit | 21b87c428c3881df07b0d6c04b86f1f6dca22b2f (patch) | |
tree | f6db6457f956b52b15b33cb4fe2d7ed894b904b9 /src/plugins/irc/irc-server.h | |
parent | 36d5f464fb5b759f4ce24301543fce86436b61ab (diff) | |
download | weechat-21b87c428c3881df07b0d6c04b86f1f6dca22b2f.zip |
irc: update channel modes by using chanmodes from message 005 (do not send extra command "MODES" to server), fix parsing of modes (bug #36215)
Diffstat (limited to 'src/plugins/irc/irc-server.h')
-rw-r--r-- | src/plugins/irc/irc-server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.h b/src/plugins/irc/irc-server.h index e8e077d53..32bebe921 100644 --- a/src/plugins/irc/irc-server.h +++ b/src/plugins/irc/irc-server.h @@ -169,6 +169,8 @@ struct t_irc_server int nick_max_length; /* max lenth of nick (from msg 005) */ int casemapping; /* casemapping from msg 005 */ char *chantypes; /* chantypes from msg 005 (eg "&#") */ + char *chanmodes; /* chanmodes from msg 005 */ + /* (eg "beI,k,l,imnpstaqr") */ int reconnect_delay; /* current reconnect delay (growing) */ time_t reconnect_start; /* this time + delay = reconnect time */ time_t command_time; /* this time + command_delay = time to */ @@ -250,6 +252,7 @@ extern char irc_server_get_prefix_mode_for_char (struct t_irc_server *server, char prefix_char); extern char irc_server_get_prefix_char_for_mode (struct t_irc_server *server, char mode); +extern const char *irc_server_get_chanmodes (struct t_irc_server *server); extern struct t_irc_server *irc_server_alloc (const char *name); extern struct t_irc_server *irc_server_alloc_with_url (const char *irc_url); extern void irc_server_apply_command_line_options (struct t_irc_server *server, |