1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00
Commit Graph

155 Commits

Author SHA1 Message Date
ailin-nemui
132d3c49f3 strip less whitespace from commands
fixes #445
2016-03-20 22:39:06 +01:00
LemonBoy
d4676c9855 Use the PARAM_FLAG_STRIP_TRAILING_WS flag wherever possible. 2015-11-09 23:02:41 +01:00
Robert C Jensen
b984f1fa25 dcc-get: close() the temp fd so we don't get ETXTBSY in ntfs mounts
Patch from debian bug 696963 [1]

Fixes github bug #220 and flyspray bug 867 [2]

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=696963
[2]: http://bugs.irssi.org/index.php?do=details&task_id=867
2015-09-23 23:39:37 -03:00
ailin-nemui
f5f3d7cc98 Revert "Network and IPv{4,6} related changes" 2015-09-22 21:59:17 +02:00
LemonBoy
ffaa890e99 Initial work to make irssi respect the resolved ip order
Ip's aren't selected using random() anymore, also select the ip version
by using getaddrinfo and some proper hints.
2015-09-21 14:19:35 +02:00
LemonBoy
16c71cf1fb Implement CHANTYPES support 2015-05-15 17:07:30 +02:00
dequis
f14199d9c1 Change all strcmp() to g_strcmp0() to handle nulls gracefully
Just a string replacement (but i did check every one of them)

    sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2015-04-07 22:41:05 -03:00
Michael Vetter
51239925ec source cleanup: remove trailing whitespaces 2014-09-11 19:10:33 +02:00
Dave Reisner
f0925de16b s/INCLUDES/AM_CPPFLAGS/g
Silences warnings on recent automake such as:

src/core/Makefile.am:3: warning: 'INCLUDES' is the old name for
'AM_CPPFLAGS' (or '*_CPPFLAGS')
2014-06-27 09:06:21 -04:00
David Hill
9d6cd87b0f Replace deprecated g_basename with g_path_get_basename. 2014-06-22 20:39:35 -04:00
David Hill
444f9e4836 Do not break strict-aliasing rules.
dcc-send.c:296:2: warning: dereferencing type-punned pointer
will break strict-aliasing rules
2014-06-20 12:43:24 -04:00
David Hill
0d4f13d20f Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp. 2014-06-10 12:06:19 -04:00
Alexander Færøy
8728207191 deprecated glib strup/down fixes from exg.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5138 dbcabf3a-b0e7-0310-adc4-f8d773084564
2010-04-03 20:09:37 +00:00
Wouter Coekaerts
4b751d9df6 Use servertag from the active DCC chat when not connected anymore to the IRC 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
2010-02-27 18:52:41 +00:00
Alexander Færøy
2fffcf5a77 Code Cleanup:
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
2009-02-08 17:57:19 +00:00
Emanuele Giaquinta
f053542dcf Extend net_sendbuffer by adding a LINEBUF_REC member and a 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-22 22:38:29 +00:00
Emanuele Giaquinta
ba80576b1e Remove some global variables used to store settings values, instead get the
values when needed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4836 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-19 21:55:04 +00:00
Emanuele Giaquinta
72930e0be3 Use g_ascii_str{,n}casecmp for case insensitive comparison with
ascii only strings.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 12:17:55 +00:00
Emanuele Giaquinta
2b0ebef911 Remove unneeded includes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4735 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-07 19:33:23 +00:00
Emanuele Giaquinta
af3b0b2b93 Replace g_strdup+g_str{up,down} with g_ascii_str{up,down}.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4721 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-04 10:42:23 +00:00
Emanuele Giaquinta
e79829b6a5 Remove unneeded includes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4709 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-05 15:03:33 +00:00
Emanuele Giaquinta
3c7c3941d7 Remove .cvsignore files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4672 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21 11:49:10 +00:00
Emanuele Giaquinta
d9782fab84 Fallback on rename also when errno is ENOSYS/EOPNOTSUPP because
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-10-29 15:37:31 +00:00
Emanuele Giaquinta
022b6f183a Fix typo.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4585 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-07-26 14:15:12 +00:00
Wouter Coekaerts
9c2d621cc6 Oops. Update address correctly now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08 18:41:10 +00:00
Wouter Coekaerts
023026e12b Update FSF address
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08 18:16:58 +00:00
Emanuele Giaquinta
a42b4202f2 Fix DCC get when file size is 0, bug #494.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4462 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-25 19:22:39 +00:00
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