mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
Fixed auto-rejoin for channels with key
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2005-07-17
|
||||
ChangeLog - 2005-07-19
|
||||
|
||||
|
||||
Version 0.1.4 (under dev!):
|
||||
* fixed auto-rejoin for channels with key
|
||||
* fixed /ctcp command (now any command/data allowed)
|
||||
* added /amsg command (send text to all channels of all connected servers)
|
||||
* fixed SIGSEGV handler (now write a core file by aborting program)
|
||||
|
||||
@@ -971,7 +971,9 @@ weechat_cmd_buffer (int argc, char **argv)
|
||||
{
|
||||
if (SERVER(gui_current_window->buffer))
|
||||
{
|
||||
if (SERVER(gui_current_window->buffer)->is_connected)
|
||||
if (SERVER(gui_current_window->buffer)->is_connected
|
||||
&& CHANNEL(gui_current_window->buffer)
|
||||
&& CHANNEL(gui_current_window->buffer)->nicks)
|
||||
irc_cmd_send_part (SERVER(gui_current_window->buffer), NULL);
|
||||
else
|
||||
{
|
||||
|
||||
+8
-1
@@ -2052,7 +2052,14 @@ irc_cmd_recv_004 (t_irc_server *server, char *host, char *arguments)
|
||||
ptr_channel = ptr_channel->next_channel)
|
||||
{
|
||||
if (ptr_channel->type == CHAT_CHANNEL)
|
||||
server_sendf (server, "JOIN %s\r\n", ptr_channel->name);
|
||||
{
|
||||
if (ptr_channel->key)
|
||||
server_sendf (server, "JOIN %s %s\r\n",
|
||||
ptr_channel->name, ptr_channel->key);
|
||||
else
|
||||
server_sendf (server, "JOIN %s\r\n",
|
||||
ptr_channel->name);
|
||||
}
|
||||
}
|
||||
server->reconnect_join = 0;
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,10 +1,11 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2005-07-17
|
||||
ChangeLog - 2005-07-19
|
||||
|
||||
|
||||
Version 0.1.4 (under dev!):
|
||||
* fixed auto-rejoin for channels with key
|
||||
* fixed /ctcp command (now any command/data allowed)
|
||||
* added /amsg command (send text to all channels of all connected servers)
|
||||
* fixed SIGSEGV handler (now write a core file by aborting program)
|
||||
|
||||
@@ -971,7 +971,9 @@ weechat_cmd_buffer (int argc, char **argv)
|
||||
{
|
||||
if (SERVER(gui_current_window->buffer))
|
||||
{
|
||||
if (SERVER(gui_current_window->buffer)->is_connected)
|
||||
if (SERVER(gui_current_window->buffer)->is_connected
|
||||
&& CHANNEL(gui_current_window->buffer)
|
||||
&& CHANNEL(gui_current_window->buffer)->nicks)
|
||||
irc_cmd_send_part (SERVER(gui_current_window->buffer), NULL);
|
||||
else
|
||||
{
|
||||
|
||||
@@ -2052,7 +2052,14 @@ irc_cmd_recv_004 (t_irc_server *server, char *host, char *arguments)
|
||||
ptr_channel = ptr_channel->next_channel)
|
||||
{
|
||||
if (ptr_channel->type == CHAT_CHANNEL)
|
||||
server_sendf (server, "JOIN %s\r\n", ptr_channel->name);
|
||||
{
|
||||
if (ptr_channel->key)
|
||||
server_sendf (server, "JOIN %s %s\r\n",
|
||||
ptr_channel->name, ptr_channel->key);
|
||||
else
|
||||
server_sendf (server, "JOIN %s\r\n",
|
||||
ptr_channel->name);
|
||||
}
|
||||
}
|
||||
server->reconnect_join = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user