mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 16:05:41 +02:00
irc: update autojoin option with redirected channels when autojoin_dynamic is enabled (closes #1898)
This commit is contained in:
@@ -55,6 +55,7 @@ Bug fixes::
|
||||
* buflist: do not display keys added in default context on first load
|
||||
* fset: remove scroll to top of fset buffer when options are added or removed (issue #1892)
|
||||
* irc: fix join of channels in "autojoin" server option on first connection to server if auto reconnection is performed (issue #1873)
|
||||
* irc: update autojoin option with redirected channels when autojoin_dynamic is enabled (issue #1898)
|
||||
* irc: fix target buffer for commands 432/433 (erroneous nickname/nickname already in use) when the nickname looks like a channel
|
||||
* spell: check buffer pointer received in info "spell_dict"
|
||||
* typing: fix crash when pointer buffer is not received in callback for signal "input_text_changed" (issue #1869)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -47,6 +47,13 @@ extern char *irc_join_remove_channel (struct t_irc_server *server,
|
||||
const char *channel_name);
|
||||
extern void irc_join_remove_channel_from_autojoin (struct t_irc_server *server,
|
||||
const char *channel_name);
|
||||
extern char *irc_join_rename_channel (struct t_irc_server *server,
|
||||
const char *join,
|
||||
const char *channel_name,
|
||||
const char *new_channel_name);
|
||||
extern void irc_join_rename_channel_in_autojoin (struct t_irc_server *server,
|
||||
const char *channel_name,
|
||||
const char *new_channel_name);
|
||||
extern void irc_join_save_channels_to_autojoin (struct t_irc_server *server);
|
||||
extern char *irc_join_sort_channels (struct t_irc_server *server,
|
||||
const char *join);
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include "irc-config.h"
|
||||
#include "irc-ctcp.h"
|
||||
#include "irc-ignore.h"
|
||||
#include "irc-join.h"
|
||||
#include "irc-message.h"
|
||||
#include "irc-mode.h"
|
||||
#include "irc-modelist.h"
|
||||
@@ -6789,6 +6790,12 @@ IRC_PROTOCOL_CALLBACK(470)
|
||||
WEECHAT_HOOK_SIGNAL_POINTER,
|
||||
ptr_buffer);
|
||||
}
|
||||
if (IRC_SERVER_OPTION_BOOLEAN(server,
|
||||
IRC_SERVER_OPTION_AUTOJOIN_DYNAMIC))
|
||||
{
|
||||
irc_join_rename_channel_in_autojoin (server, params[1],
|
||||
params[2]);
|
||||
}
|
||||
}
|
||||
|
||||
old_channel_lower = weechat_string_tolower (params[1]);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user