1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 09:13:14 +02:00

When private window is created (another user is talking), WeeChat does not switch to this window

This commit is contained in:
Sebastien Helleu
2003-12-31 16:00:20 +00:00
parent 0708f1a571
commit fd3e94070a
26 changed files with 64 additions and 44 deletions
+3 -2
View File
@@ -41,7 +41,8 @@ t_irc_channel *current_channel = NULL;
*/
t_irc_channel *
channel_new (t_irc_server *server, int channel_type, char *channel_name)
channel_new (t_irc_server *server, int channel_type, char *channel_name,
int switch_to_window)
{
t_irc_channel *new_channel;
@@ -68,7 +69,7 @@ channel_new (t_irc_server *server, int channel_type, char *channel_name)
server->channels = new_channel;
server->last_channel = new_channel;
gui_window_new (server, new_channel);
gui_window_new (server, new_channel, switch_to_window);
/* all is ok, return address of new channel */
return new_channel;
+2 -2
View File
@@ -158,7 +158,7 @@ irc_cmd_recv_join (t_irc_server *server, char *host, char *arguments)
ptr_channel = channel_search (server, arguments);
if (!ptr_channel)
{
ptr_channel = channel_new (server, CHAT_CHANNEL, arguments);
ptr_channel = channel_new (server, CHAT_CHANNEL, arguments, 1);
if (!ptr_channel)
{
gui_printf (server->window,
@@ -894,7 +894,7 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *arguments)
ptr_channel = channel_search (server, host);
if (!ptr_channel)
{
ptr_channel = channel_new (server, CHAT_PRIVATE, host);
ptr_channel = channel_new (server, CHAT_PRIVATE, host, 0);
if (!ptr_channel)
{
gui_printf (server->window,
+1 -1
View File
@@ -487,7 +487,7 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
ptr_channel = channel_search (server, arguments);
if (!ptr_channel)
{
ptr_channel = channel_new (server, CHAT_PRIVATE, arguments);
ptr_channel = channel_new (server, CHAT_PRIVATE, arguments, 1);
if (!ptr_channel)
{
gui_printf (server->window,
+1 -1
View File
@@ -585,7 +585,7 @@ server_auto_connect ()
{
if (ptr_server->autoconnect)
{
gui_window_new (ptr_server, NULL);
gui_window_new (ptr_server, NULL, 1);
if (server_connect (ptr_server))
irc_login (ptr_server);
}
+1 -1
View File
@@ -161,7 +161,7 @@ extern int server_name_already_exists (char *);
/* channel functions (irc-channel.c) */
extern t_irc_channel *channel_new (t_irc_server *, int, char *);
extern t_irc_channel *channel_new (t_irc_server *, int, char *, int);
extern void channel_free (t_irc_server *, t_irc_channel *);
extern void channel_free_all (t_irc_server *);
extern t_irc_channel *channel_search (t_irc_server *, char *);