diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-08-09 01:57:42 +0200 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-08-09 01:57:42 +0200 |
commit | 1e74680172e4ff43fb109557bea87d090d8376c2 (patch) | |
tree | 80aad05916b1bf3520f250ce5d886a6bb6d20c45 /src/common/outbound.c | |
parent | c000073225cafe8f2ed6d30ff4b9ba5351dfbb6b (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.c | 6 |
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); |