summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
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);