Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
xchat
xchat-tabs_outgoing_msg.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xchat-tabs_outgoing_msg.patch of Package xchat
--- src/common/cfgfiles.c | 1 + src/common/outbound.c | 5 ++++- src/common/xchat.h | 1 + src/fe-gtk/setup.c | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -538,6 +538,7 @@ const struct prefs vars[] = { {"tab_layout", P_OFFINT (tab_layout), TYPE_INT}, {"tab_new_to_front", P_OFFINT (newtabstofront), TYPE_INT}, {"tab_notices", P_OFFINT (notices_tabs), TYPE_BOOL}, + {"tab_outgoing_msg", P_OFFINT (tabs_outgoing_msg), TYPE_BOOL}, {"tab_pos", P_OFFINT (tab_pos), TYPE_INT}, {"tab_position", P_OFFINT (_tabs_position), TYPE_INT}, /* obsolete */ {"tab_server", P_OFFINT (use_server_tab), TYPE_BOOL}, --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -2625,8 +2625,11 @@ cmd_msg (struct session *sess, char *tbu sess->server->p_message (sess->server, nick, msg); } newsess = find_dialog (sess->server, nick); - if (!newsess) + if (!newsess) { newsess = find_channel (sess->server, nick); + if(!newsess && prefs.tabs_outgoing_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); --- a/src/common/xchat.h +++ b/src/common/xchat.h @@ -268,6 +268,7 @@ struct xchatprefs unsigned int irc_whois_front; unsigned int use_server_tab; unsigned int notices_tabs; + unsigned int tabs_outgoing_msg; unsigned int style_namelistgad; unsigned int style_inputbox; unsigned int windows_as_tabs; --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -248,6 +248,7 @@ static const setting tabs_settings[] = {ST_RADIO, N_("Switcher type:"),P_OFFINTNL(tab_layout), 0, swtype, 0}, {ST_TOGGLE, N_("Open an extra tab for server messages"), P_OFFINTNL(use_server_tab), 0, 0, 0}, {ST_TOGGLE, N_("Open an extra tab for server notices"), P_OFFINTNL(notices_tabs), 0, 0, 0}, + {ST_TOGGLE, N_("Open an extra tab for outgoing msg"), P_OFFINTNL(tabs_outgoing_msg), 0, 0, 0}, {ST_TOGGLE, N_("Open a new tab when you receive a private message"), P_OFFINTNL(autodialog), 0, 0, 0}, {ST_TOGGLE, N_("Sort tabs in alphabetical order"), P_OFFINTNL(tab_sort), 0, 0, 0}, {ST_TOGGLE, N_("Small tabs"), P_OFFINTNL(tab_small), 0, 0, 0},
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor