1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-22 04:35:58 -04:00
Commit Graph

178 Commits

Author SHA1 Message Date
Emanuele Giaquinta
7484c8b373 Remove dcc_queue_add_passive, use instead another argument in dcc_queue_add to initialize rec->passive.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4407 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-01-08 19:02:20 +00:00
Jochen Eisinger
4de9baf8f1 Removed all srand calls and added a single srand invokation in at startup
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4264 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-03-26 08:42:34 +00:00
Valentin Batz
3eedfa4e12 leave parameter count check as it was before
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4245 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-02-17 23:18:34 +00:00
Valentin Batz
39d58af912 check the paramcount for DCC RESUME more strictly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4244 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-02-17 23:07:02 +00:00
Timo Sirainen
a975788d15 If dcc_own_ip contains IPv4 address, listen only in IPv4.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4228 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-01-28 16:04:44 +00:00
Wouter Coekaerts
df69be65d4 fix segfault on /quit by using a linked list node after freeing it (by Chris Moore)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4202 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-01-17 20:20:28 +00:00
Valentin Batz
fd476e8b31 Make the compiler happy by replacing 'const char *' by 'char *'.
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-10-10 18:32:32 +00:00
Wouter Coekaerts
fd6c2df7f4 don't crash if server sends weird NICK line, patch by Jarno Honkanen (Bug 216)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3992 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-09-10 13:30:23 +00:00
Wouter Coekaerts
6d42a00287 Fix dcc resume crash (only in the rc's and svn) (Bug 287)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3895 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-08-01 16:07:22 +00:00
Wouter Coekaerts
e1c7d7e260 Don't use a retarted ip for passive DCC
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3722 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-03-07 16:02:06 +00:00
Wouter Coekaerts
e159d8b2f0 Fix memleak in dcc get, by Toby Peterson (Bug 214)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3716 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-03-06 18:47:05 +00:00
Valentin Batz
5a8b583347 Fixed output of /hilight (add a space after -levels if any).
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
2005-02-11 17:27:09 +00:00
Timo Sirainen
169086ab51 /DCC SEND didn't actually use /SET dcc_upload_path
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3279 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-08-19 20:41:47 +00:00
Timo Sirainen
c3919e66a8 Don't autoget files sent to channels, unless dcc_autoget_masks is set.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3271 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11 21:56:52 +00:00
Timo Sirainen
5133583132 Some DCC SERVER fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3266 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11 16:07:40 +00:00
Timo Sirainen
0fe183b8c9 Don't crash if dcc chated user changes nick
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3265 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11 15:55:27 +00:00
Timo Sirainen
372903e72e Fix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3264 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11 15:52:04 +00:00
Timo Sirainen
cf1b6078dd Crashed with spaces in filenames, patch by Francesco Fracassi
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3252 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-05-14 12:28:29 +00:00
Timo Sirainen
777bb76195 noinst_HEADERS -> pkginc_HEADERS
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3250 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-05-10 20:30:57 +00:00
Timo Sirainen
af4bcb70f2 Passive DCC support by Francesco Fracassi (francesco.f at openssl.it)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3236 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-23 22:06:41 +00:00
Timo Sirainen
1c318ec775 /set -default dcc_autoget_max_size crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3202 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-19 17:13:40 +00:00
Timo Sirainen
2d4a7d3595 0.8.8 with a few backwards compatibility fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3187 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-23 14:25:34 +00:00
Timo Sirainen
91be647710 Don't crash with /DCC SEND nick ""
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3142 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 16:49:51 +00:00
Timo Sirainen
aa78361f24 Allow /SET dcc_own_ip to be non-local address.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3140 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 16:33:25 +00:00
Timo Sirainen
65463924d2 Added DCC SERVER support by Mark Trumbull
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3127 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-01 16:02:43 +00:00
Timo Sirainen
a619fe9a2c Network fixes. DCC fixes for IPv6 + BSDs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3124 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-07-09 23:34:41 +00:00
Timo Sirainen
bd6fe052bc Added time, size and level setting types. Breaks some settings - I'll add
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-28 17:54:13 +00:00
Timo Sirainen
6825f1e67e GC fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3056 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-10 20:30:03 +00:00
Timo Sirainen
dc8bd638e3 Irssi now uses 64bit file offets if it's only supported by system. Also did
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-21 17:48:40 +00:00
Timo Sirainen
c2d0adc47c /SET dcc_send_replace_space_with_underscore ON was buggy.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3015 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-19 12:18:11 +00:00
Timo Sirainen
e5d506e31e Less strict error checking, and notify about every error we do see.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3007 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-17 15:51:04 +00:00
Timo Sirainen
f167270a6b If /DCC SEND file isn't found, complain about it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-17 15:27:55 +00:00
Timo Sirainen
d6c1cfa14b Don't rename our nick in DCC chats when connecting to server before we know
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-13 13:02:29 +00:00
Timo Sirainen
be1cd41a34 Fixes to allow -append and -prepend work when there's only one file being
sent to wanted nick + typo bugfix.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2997 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-11 08:01:22 +00:00
Timo Sirainen
087e5ee525 whops, forgot to add
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2996 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-11 07:35:44 +00:00
Timo Sirainen
488e7b70f4 DCC send supports now queueing. Patch by Heikki Orsila <heikki@ee.tut.fi>,
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
2002-11-11 06:35:12 +00:00
Timo Sirainen
55c2e7a066 /SET dcc_file_create_mode wasn't used. Also print strerror() message if
creation fails.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2949 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-14 15:26:26 +00:00
Timo Sirainen
70ac684095 in_addr_t wasn't too standard, so use guint32 after all.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2918 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-14 07:29:48 +00:00
Timo Sirainen
c5095a422c s/guint32/in_addr_t/ actually.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2917 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-14 00:42:37 +00:00
Timo Sirainen
9805841e61 DCC was broken with some 64bit systems (64bit unsigned long)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2916 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-14 00:36:20 +00:00
Timo Sirainen
13effe87e4 removed the stupid error-parameters from net_connect*() calls. errno can be
used just fine.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2889 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-26 19:05:14 +00:00
Timo Sirainen
137aaeb499 "/MSG *" works now properly with dcc chat queries.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2826 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-26 17:39:35 +00:00
Timo Sirainen
eddc3d90c6 net_ip2host() and net_host2ip() now treat any IPv6 IPs as 0.0.0.0, if IPv6
support isn't enabled in irssi. Also DCC's human readable IP address is
taken from DCC SEND request directly with IPv6.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2825 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-26 16:52:36 +00:00
Timo Sirainen
6f7485b8fa net_connect*() contains now error parameter, so it can be used to properly
check the errno if connect() fails.

Added support for connecting to named UNIX sockets. Some cleanups with
session handling / server connecting as well.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2819 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-19 14:43:16 +00:00
Timo Sirainen
c8187a9a76 crashfix for previous ~/. kludge
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2801 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-17 12:59:39 +00:00
Timo Sirainen
e6aa8415ef kludgeing: don't autoget files beginning with '.' if dcc_download_path is
home dir.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2800 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-16 18:00:47 +00:00
Timo Sirainen
4a93232462 dcc reject bugfix went wrong, fixed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2778 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-12 11:20:02 +00:00
Timo Sirainen
583417d66e irssi didn't notice if DCC send connection died.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2777 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-12 11:19:13 +00:00
Timo Sirainen
5b5cd255e9 don't send DCC REJECT when closing a connected DCC connection.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2767 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-10 18:47:49 +00:00
Timo Sirainen
3f43df1db8 warning fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2708 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-23 08:53:23 +00:00
Timo Sirainen
92b780ff60 /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
2002-04-18 15:25:00 +00:00
Timo Sirainen
aa95b7f305 /SET dcc_autoget_max_size default changed to 0 (disabled) - it's pretty
stupid default since no-one wants it anyway


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2665 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-11 13:54:23 +00:00
Timo Sirainen
bd00ff54c2 Fixed one error and several warnings with GLIB 2.0
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2663 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-10 02:53:06 +00:00
Timo Sirainen
bb3a1787b4 Listen for DCC connections in all interfaces
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2649 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-31 19:40:40 +00:00
Timo Sirainen
0a02833d0e fallback to rename() if link() isn't supported on the filesystem, so people
can still download files to such FSes..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2625 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-17 00:59:46 +00:00
Timo Sirainen
c726496953 proper checking for lseek() failure
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2601 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13 03:19:04 +00:00
Timo Sirainen
64e98b7f4a Correctly handle DCC GET write() failures.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2427 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 18:42:23 +00:00
Timo Sirainen
f8114c834f DCC /MSG handlers broke /MSG -ircnet
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2396 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-06 18:07:55 +00:00
Timo Sirainen
d1ade13a71 Broke DCC CHAT queries.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2391 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-04 21:20:05 +00:00
Timo Sirainen
30a4a2ab76 Ignore /SET dcc_autoresume if /SET dcc_autoget is OFF.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2371 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02 17:23:56 +00:00
Timo Sirainen
f4897860b5 toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in some
systems, use our own is_...() functions now instead.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27 20:45:59 +00:00
Timo Sirainen
d6abc84ab5 Connection tag variable wasn't deinitialized, so when destroying a DCC
record it might have stopped a wrong timeout/io func (or probably not,
because new source func was allocated soon after, and it'd have the same tag
which would just be free'd twice).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2324 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-20 02:18:37 +00:00
Timo Sirainen
103d668974 When creating a file for DCC download, make sure we won't run into any race
conditions if /SET dcc_download_path was set to some directory where other
users could write files as well. Also, the created file mode is always 0600
now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2318 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-17 22:51:28 +00:00
Timo Sirainen
6e4730b65d Added "message dcc xxx" signals for printing DCC messages.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2298 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-09 16:04:53 +00:00
Timo Sirainen
e6f006009f /SET dcc_own_ip now affects also which interface irssi uses to connect to
outgoing DCC connections.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2150 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 17:35:47 +00:00
Timo Sirainen
5bcb8251f5 Ignoring CTCPs shouldn't ignore DCC CTCPs, we're checking DCC level for
ignoring them now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2094 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 20:16:24 +00:00
Timo Sirainen
65c9a361ab If /SET dcc_upload_path is empty, we should use the current directory, not
root directory.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2074 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 02:46:26 +00:00
Timo Sirainen
6a82e806b4 Moved $(GLIB_CFLAGS) after -I includes, to make sure our own .h files get before possibly identically named headers in the glib's include directory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1975 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-05 14:48:03 +00:00
Timo Sirainen
f354fe54c7 Moved some stuff from irc to core. Added command_bind_proto() function to
bind protocol-specific commands. Added #define command_bind_irc() for easier
access. CMD_IRC_SERVER(server) check should be done at the beginning of each
command requiring IRC server as active server, it handles it correctly the
cases when it is not. Did some other cleanups as well.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1955 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02 01:05:14 +00:00
Timo Sirainen
20e26554cd The new /SET dcc_port range didn't work properly..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1795 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-12 12:19:59 +00:00
Timo Sirainen
db2a25d22d /SET dcc_port accepts now port range (eg. "10000 20000")
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1784 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-10 20:21:05 +00:00
Timo Sirainen
803d805016 Module loading updates - /LOAD shows now also the statically loaded modules.
You can't /LOAD the same module twice. Syntax changed to /LOAD <module>
[<submodule>], /UNLOAD <module> [<submodule>].

NOTE: all modules now need to call register_module() in their init()
function.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1748 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:41:59 +00:00
Timo Sirainen
e72780d4d6 DCC_REC was missing MODULE_DATA_INIT() / .._DEINIT()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1602 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-30 10:11:33 +00:00
Timo Sirainen
fc3918b0f0 dcc, flood and notifylist aren't compiled as loadable modules anymore,
no-one wants that and irssi crashes in AIX because of it.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1530 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 18:39:45 +00:00
Timo Sirainen
da9d55f403 /SET dcc_own_ip for specifying own IP to use in DCC requests
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1512 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-22 00:16:38 +00:00
Timo Sirainen
f3f8eb620a added "dcc request send" signal - irssi now prints "DCC CHAT/SEND request
sent to nick".


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1472 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 12:55:18 +00:00
Timo Sirainen
cb28685574 "dcc error file not found" -> "dcc error file open". Print the actual error
message based on errno, don't just assume the file wasn't found.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1471 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 12:43:59 +00:00
Timo Sirainen
f3ccfa567d dcc_autoget_lowports -> dcc_autoaccept_lowports since dcc chat uses it too
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1412 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-20 16:35:00 +00:00
Timo Sirainen
62bd2045bb union { .. } addr removed from IPADDR - it hasn't been actually used
for a long time..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1339 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 03:00:35 +00:00
Timo Sirainen
4c7b07ed3f IPv6 fixes. Everything now keeps both v4 and v6 addresses in memory and
at connect() time it's decided which one should be used.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1334 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 01:47:13 +00:00
Timo Sirainen
51c1fee749 fixed some signed/unsigned issues
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1304 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-28 19:26:21 +00:00
Timo Sirainen
db4e159870 DCC CTCP replies weren't handled properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1274 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-21 05:11:26 +00:00
Timo Sirainen
19dff227d8 Removed /SET dcc_block_size and /SET dcc_fast_send - fast send is now
always used and dcc_block_size is useless with it.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1250 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 03:40:06 +00:00
Timo Sirainen
e4f7d55ce9 DCC cleanups - split DCC_REC to CHAT|GET|SEND_DCC_RECs. Plugins should
now be able to add whatever new DCC types.

Nick changes affect DCC chats. /WHOIS without parameters works properly
in DCC CHAT queries.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1194 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10 02:02:26 +00:00
Timo Sirainen
6ad5d24e0d DCC RESUME, DCC ACCEPT: we might have crashed with invalid parameters.
Some other "cleanups".


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1178 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-03 17:38:01 +00:00
Timo Sirainen
ce6e5a12f9 DCC cleanups - half rewrite. New features: file names with spaces work
properly, you can have multiple dcc chats with same people (or more
useful, same nick in different ircnets), /DCC CHAT|GET|RESUME with no
arguments accepts the last request, notifies if dcc request was sent to
channel, warns about connecting to lowports, /SET dcc_autoget_lowports
specifies if autogetting should work with lowports, complains of
invalid dcc ctcps instead of ignoring. And fixed /SET dcc_autorename
OFF which didn't work before.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1135 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-18 02:30:59 +00:00
Timo Sirainen
3f1b28ead9 item_get_dcc(void *item) -> WI_ITEM_REC *item
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1088 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07 09:26:45 +00:00
Timo Sirainen
be4b473be5 /SET dcc_autoresume - like /SET dcc_autoget, but resume the files if
they're already found. Also fixed file transfer being stuck when
resuming file that was already fully sent (happened with both send and
get). /dcc close was also broken.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1051 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-02 16:14:19 +00:00
Timo Sirainen
4a33801669 Added/moved several "typedef struct _XXX XXX;" to common.h so that
they're known to all files and I don't need those stupid "void *xxx"
anymore just to avoid useless #include. Header files themselves don't
either include others as often anymore.

Added channel->ownnick to point to our NICK_REC in channel's nicks.
Gives a minor speedup in few places :)

Moved completion specific lastmsgs from channel/server core records to
fe-common/core specific records. Also changed the nick completion logic
a bit so it should work better now. Removed
completion_keep_publics_count setting, but changed the meaning of
completion_keep_publics to same as _count was before. Nick completion
doesn't have any time specific code anymore.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1034 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 07:45:54 +00:00
Timo Sirainen
06a6428d83 security fixes from 0.7.97.2
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1017 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-19 17:48:42 +00:00
Timo Sirainen
9f2f1dc70a Server events: switched order of data and server parameters. it's now
SERVER_REC *server, const char *data, .. hope this doesn't cause too
many problems :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@967 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-05 21:12:52 +00:00
Timo Sirainen
1c9f45b4a4 Use GIOChannel instead of sockets directly. Helps porting to win32 :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@962 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04 22:57:18 +00:00
Timo Sirainen
d1d70fd5d7 s/enum GInputCondition/int/ - enums aren't supposed to orred together i
think.. at least MIPSpro gave warnings about it and it also feels wrong :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@865 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-23 23:29:32 +00:00
Timo Sirainen
1fd6f8faf6 more changes from int xx:1 to unsigned int xx:1
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@861 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-23 22:57:59 +00:00
Timo Sirainen
8ce36c05ea several fixes to make irssi compile without warnings with MIPSpro
also fixed ctcp_queue_clean() - it might have crashed sometimes..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@859 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-23 21:40:07 +00:00
Timo Sirainen
14e5dc8b8e compiler warning fixes + one real bug in dcc-chat
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@850 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-18 15:31:28 +00:00
Timo Sirainen
090e88b34d If other side replies to our DCC CHAT request with DCC CHAT request of
their own (maybe we were inside firewall and other side noticed it),
connect to it immediately.

Don't allow more than one identical DCC request, if more is received
just update the port of the previous request.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@844 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-17 03:08:32 +00:00
Timo Sirainen
54815d198b Check that enough parameters are given to /DCC CLOSE
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@843 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-17 02:45:04 +00:00
Timo Sirainen
63491d7d4f /SET dcc_autodisplay_dialog isn't used for anything, removed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@832 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-11 00:56:13 +00:00
Timo Sirainen
6fc2a34121 Added -avoid-version options and disable-static for SILC module.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@714 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-02 01:11:53 +00:00