summaryrefslogtreecommitdiff
path: root/src/irc/dcc
AgeCommit message (Collapse)Author
2010-02-27Use servertag from the active DCC chat when not connected anymore to the IRC ↵Wouter Coekaerts
server that started it. This fixes a crash with handling the DCC queue. Reported by Aurelien Delaitre (SATE 2009) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5122 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-08Code Cleanup:Alexander Færøy
Use g_string_printf() instead of g_string_sprintf() (which is considered deprecated.) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-22Extend net_sendbuffer by adding a LINEBUF_REC member and a ↵Emanuele Giaquinta
net_sendbuffer_receive_line function to read linewise from the associated io channel. Rewrite irc/dcc/proxy read logic on top of it. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4841 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-19Remove some global variables used to store settings values, instead get theEmanuele Giaquinta
values when needed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4836 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Use g_ascii_str{,n}casecmp for case insensitive comparison withEmanuele Giaquinta
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-07Remove unneeded includes.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4735 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-04Replace g_strdup+g_str{up,down} with g_ascii_str{up,down}.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4721 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-05Remove unneeded includes.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4709 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21Remove .cvsignore files.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4672 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-10-29Fallback on rename also when errno is ENOSYS/EOPNOTSUPP becauseEmanuele Giaquinta
FUSE/BSD sets this value when link is not available. Based on a patch by Juuso Tähkäpää, bug 536. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4631 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-07-26Fix typo.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4585 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Oops. Update address correctly now.Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Update FSF addressWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-25Fix DCC get when file size is 0, bug #494.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4462 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-01-08Remove dcc_queue_add_passive, use instead another argument in dcc_queue_add ↵Emanuele Giaquinta
to initialize rec->passive. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4407 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-03-26Removed all srand calls and added a single srand invokation in at startupJochen Eisinger
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4264 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-02-17leave parameter count check as it was beforeValentin Batz
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4245 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-02-17check the paramcount for DCC RESUME more strictlyValentin Batz
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4244 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-01-28If dcc_own_ip contains IPv4 address, listen only in IPv4.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4228 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-01-17fix segfault on /quit by using a linked list node after freeing it (by ↵Wouter Coekaerts
Chris Moore) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4202 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-10-10Make the compiler happy by replacing 'const char *' by 'char *'.Valentin Batz
Pass the pointer to the SERVER_REC to dcc_ctcp_message. Recode 'own' messages back for printing just before they actually get printed. (ugly but more effective than adding all the signals in fe-recode and doing it there) Replaced SERVER_REC by IRC_SERVER_REC in dcc-chat.c since it's belongs to IRC(makes the compiler happy again). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4034 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-09-10don't crash if server sends weird NICK line, patch by Jarno Honkanen (Bug 216)Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3992 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-08-01Fix dcc resume crash (only in the rc's and svn) (Bug 287)Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3895 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-03-07Don't use a retarted ip for passive DCCWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3722 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-03-06Fix memleak in dcc get, by Toby Peterson (Bug 214)Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3716 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-02-11Fixed output of /hilight (add a space after -levels if any).Valentin Batz
Added recode to dcc-chat, patch by Jean-Yves Lefort git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3708 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-08-19/DCC SEND didn't actually use /SET dcc_upload_pathTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3279 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11Don't autoget files sent to channels, unless dcc_autoget_masks is set.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3271 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11Some DCC SERVER fixes.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3266 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11Don't crash if dcc chated user changes nickTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3265 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11Fix.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3264 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-05-14Crashed with spaces in filenames, patch by Francesco FracassiTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3252 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-05-10noinst_HEADERS -> pkginc_HEADERSTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3250 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-23Passive DCC support by Francesco Fracassi (francesco.f at openssl.it)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3236 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-19/set -default dcc_autoget_max_size crashedTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3202 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-230.8.8 with a few backwards compatibility fixesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3187 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16Don't crash with /DCC SEND nick ""Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3142 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16Allow /SET dcc_own_ip to be non-local address.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3140 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-01Added DCC SERVER support by Mark TrumbullTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3127 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-07-09Network fixes. DCC fixes for IPv6 + BSDs.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3124 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28Added time, size and level setting types. Breaks some settings - I'll addTimo Sirainen
automatic converter to these settings later. Meanwhile you CVS users can fix your config files yourself :) Time settings allow using "days", "hours", "minutes", "seconds" and "milliseconds" or several of their abbreviations. For example "5d 4h 5msecs". Size settings allow using "gbytes", "mbytes", "kbytes" and "bytes" or their abbrevations. For example "5MB". Level settings are currently handled pretty much the way they were before. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-10GC fixes.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3056 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-21Irssi now uses 64bit file offets if it's only supported by system. Also didTimo Sirainen
a few changes to DCC so that it should be possible to send >4GB files. DCC protocol uses 32bit "n bytes transferred" notifications, so I had to bend the protocol a bit to allow 64bit files by truncating the value to lowest 32bits. I'm not sure how other clients handle those notifications, but irssi uses it only to figure out when the DCC SEND transfer is complete, so it's quite safe to assume that if we've managed to write() all the bytes and we receive the last 32bit of file size, it means the total file size instead of the total - (n+1)*4GB. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3018 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-19/SET dcc_send_replace_space_with_underscore ON was buggy.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3015 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-17Less strict error checking, and notify about every error we do see.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3007 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-17If /DCC SEND file isn't found, complain about itTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-13Don't rename our nick in DCC chats when connecting to server before we knowTimo Sirainen
what nick the server gave to us (ie. may not be the same as the nick we requested). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3000 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-11Fixes to allow -append and -prepend work when there's only one file beingTimo Sirainen
sent to wanted nick + typo bugfix. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2997 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-11whops, forgot to addTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2996 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-11DCC send supports now queueing. Patch by Heikki Orsila <heikki@ee.tut.fi>,Timo Sirainen
although I did pretty heavy changes which hopefully didn't break it too badly :) New syntax: DCC SEND [-append | -prepend | flush | -rmtail | -rmhead] <nick> -<file> [<file> ...] git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2994 dbcabf3a-b0e7-0310-adc4-f8d773084564