summaryrefslogtreecommitdiff
path: root/src/irc/irc-dcc.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-10-24 11:23:31 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-10-24 11:23:31 +0000
commitdfa9ed31d47908f0eb58df652f08cee3ea18193b (patch)
treeabe024ddf0c384e15c57374478740fb465867ad9 /src/irc/irc-dcc.c
parent1e815918037a9e5d62458972bdbcfd56deeadd98 (diff)
downloadweechat-dfa9ed31d47908f0eb58df652f08cee3ea18193b.zip
Added "modifier" in plugins API, improved /plugin command
Diffstat (limited to 'src/irc/irc-dcc.c')
-rw-r--r--src/irc/irc-dcc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/irc/irc-dcc.c b/src/irc/irc-dcc.c
index 6a7e225c9..27ff501a4 100644
--- a/src/irc/irc-dcc.c
+++ b/src/irc/irc-dcc.c
@@ -632,8 +632,8 @@ dcc_accept (t_irc_dcc *ptr_dcc)
ptr_dcc->status = DCC_CONNECTING;
server_sendf (ptr_dcc->server,
(strchr (ptr_dcc->filename, ' ')) ?
- "PRIVMSG %s :\01DCC RESUME \"%s\" %d %u\01\r\n" :
- "PRIVMSG %s :\01DCC RESUME %s %d %u\01\r\n",
+ "PRIVMSG %s :\01DCC RESUME \"%s\" %d %u\01\n" :
+ "PRIVMSG %s :\01DCC RESUME %s %d %u\01",
ptr_dcc->nick, ptr_dcc->filename,
ptr_dcc->port, ptr_dcc->start_resume);
dcc_redraw (HOTLIST_MSG);
@@ -661,8 +661,8 @@ dcc_accept_resume (t_irc_server *server, char *filename, int port,
ptr_dcc->last_check_pos = pos_start;
server_sendf (ptr_dcc->server,
(strchr (ptr_dcc->filename, ' ')) ?
- "PRIVMSG %s :\01DCC ACCEPT \"%s\" %d %u\01\r\n" :
- "PRIVMSG %s :\01DCC ACCEPT %s %d %u\01\r\n",
+ "PRIVMSG %s :\01DCC ACCEPT \"%s\" %d %u\01\n" :
+ "PRIVMSG %s :\01DCC ACCEPT %s %d %u\01",
ptr_dcc->nick, ptr_dcc->filename,
ptr_dcc->port, ptr_dcc->start_resume);
@@ -1158,13 +1158,13 @@ dcc_send_request (t_irc_server *server, int type, char *nick, char *filename)
/* send DCC request to nick */
if (type == DCC_CHAT_SEND)
server_sendf (server,
- "PRIVMSG %s :\01DCC CHAT chat %lu %d\01\r\n",
+ "PRIVMSG %s :\01DCC CHAT chat %lu %d\01",
nick, local_addr, port);
else
server_sendf (server,
(spaces) ?
- "PRIVMSG %s :\01DCC SEND \"%s\" %lu %d %u\01\r\n" :
- "PRIVMSG %s :\01DCC SEND %s %lu %d %u\01\r\n",
+ "PRIVMSG %s :\01DCC SEND \"%s\" %lu %d %u\01\n" :
+ "PRIVMSG %s :\01DCC SEND %s %lu %d %u\01",
nick, short_filename, local_addr, port,
(unsigned long) st.st_size);