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

71 Commits

Author SHA1 Message Date
Ailin Nemui
00a7efc69f modularise irc component 2019-07-17 13:37:19 +02:00
ailin-nemui
7e6e1f2e10 Use full paths to includes 2019-05-01 22:08:45 +02:00
dequis
ade2f87fe5 Fix use after free introduced by the use after free patch 2018-08-24 02:19:42 -03:00
coypu@sdf.org
610ab2dafa Use-after-frees
Hi folks!

I tried clang-static-analyzer on irssi 1.1.1, it seems like it
finds some things. Here's a diff, but there might be more that you would
want to check, or choose to work differently.

(in special-vars.c, ret is commands->data sometime)

I hope it's not too much trouble if reported as a confidential bug.
Thanks.
2018-08-23 14:13:48 +02:00
LemonBoy
8b54366d95 Support quoted filenames in some /DCC commands 2016-03-22 16:00:00 +01:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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