mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/SET dcc_send_replace_space_with_underscore - patch by nix@suhs.nu
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2698 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
77b25c1ac7
commit
92b780ff60
@ -230,6 +230,11 @@ static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server,
|
|||||||
|
|
||||||
fname = g_basename(fname);
|
fname = g_basename(fname);
|
||||||
|
|
||||||
|
/* Replace all the spaces with underscore so that lesser
|
||||||
|
intellgent clients can communicate.. */
|
||||||
|
if (settings_get_bool("dcc_send_replace_space_with_underscore"))
|
||||||
|
g_strdelimit(fname, " ", '_');
|
||||||
|
|
||||||
dcc = dcc_send_create(server, chat, target, fname);
|
dcc = dcc_send_create(server, chat, target, fname);
|
||||||
dcc->handle = handle;
|
dcc->handle = handle;
|
||||||
dcc->port = port;
|
dcc->port = port;
|
||||||
@ -257,7 +262,7 @@ void dcc_send_init(void)
|
|||||||
{
|
{
|
||||||
dcc_register_type("SEND");
|
dcc_register_type("SEND");
|
||||||
settings_add_str("dcc", "dcc_upload_path", "~");
|
settings_add_str("dcc", "dcc_upload_path", "~");
|
||||||
|
settings_add_bool("dcc", "dcc_send_replace_space_with_underscore", FALSE);
|
||||||
signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);
|
signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);
|
||||||
command_bind("dcc send", NULL, (SIGNAL_FUNC) cmd_dcc_send);
|
command_bind("dcc send", NULL, (SIGNAL_FUNC) cmd_dcc_send);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user