From 1e74680172e4ff43fb109557bea87d090d8376c2 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Tue, 9 Aug 2011 01:57:42 +0200 Subject: add option to auto-open a new tab when sending /msg (openSUSE) --- src/common/outbound.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common/outbound.c') diff --git a/src/common/outbound.c b/src/common/outbound.c index df8eddbd..417ac323 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -2605,7 +2605,13 @@ cmd_msg (struct session *sess, char *tbuf, char *word[], char *word_eol[]) } newsess = find_dialog (sess->server, nick); if (!newsess) + { newsess = find_channel (sess->server, nick); + if (!newsess && prefs.gui_auto_open_msg) + { + newsess = new_ircwindow (sess->server, nick, SESS_DIALOG, 0); + } + } if (newsess) inbound_chanmsg (newsess->server, NULL, newsess->channel, newsess->server->nick, msg, TRUE, FALSE); -- cgit 1.4.1