summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-08-09 01:57:42 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-08-09 01:57:42 +0200
commit1e74680172e4ff43fb109557bea87d090d8376c2 (patch)
tree80aad05916b1bf3520f250ce5d886a6bb6d20c45 /src/common/outbound.c
parentc000073225cafe8f2ed6d30ff4b9ba5351dfbb6b (diff)
add option to auto-open a new tab when sending /msg (openSUSE)
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c6
1 files changed, 6 insertions, 0 deletions
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);