Hiltjo Posthuma
2d0480ce81
ii.1: improve documentation of usage options
...
* Also improve the order of options and consistency with the usage in ii.c.
* Remove some redundant sections.
Adapted from a patch by Petr Vaněk <arkamar@atlas.cz>, thanks!
2022-09-02 11:33:46 +02:00
Tom Schwindl
71c1e50da0
ii: Add a die() function to replace fprintf(3) + exit(3) calls
2022-08-12 09:10:20 +02:00
Christoph Lohmann
cfb3464c6e
Reduce effective buffer size per channel input.
...
This will curb the easy way to trigger a too long line sent to the
server and prevent this error and connection drop.
2021-12-25 12:12:54 +01:00
Christoph Lohmann
d9be11ad05
Increase ping timeout for bad connections.
2021-12-25 12:10:10 +01:00
Hiltjo Posthuma
ecf390259c
ewritestr: Remove duplicate shift of offset
...
Patch by mizmar@protonmail.com , thanks.
2020-07-05 22:32:13 +02:00
David Demelier
49e239fbb1
remove useless c->next = NULL
2020-01-17 14:55:06 +01:00
Hiltjo Posthuma
a192aa3113
minor style fix for ARGEND
...
see:
https://9fans.github.io/plan9port/man/man3/arg.html
2019-12-16 18:28:10 +01:00
Hiltjo Posthuma
1411224b16
fix undefined behaviour of use of isalpha, isdigit and tolower
...
"The argument c must be EOF or representable as an unsigned char;
otherwise, the result is undefined."
2019-12-16 18:26:01 +01:00
Michael Forney
bf06f14188
Fix traversal of addrinfo list
...
Although the loop is executed once for every result, in each iteration
it connects to the first result.
2019-05-26 15:38:52 +02:00
Hiltjo Posthuma
dfecb5c0f4
fix typo in NOTICE messages
2019-02-12 18:14:18 +01:00
Hiltjo Posthuma
b25423f765
check input length before reading
...
thanks halbeno and quinq for the patches and feedback.
2018-07-23 21:42:59 +02:00
Quentin Rameau
51cb204eb2
Add a config option to link against system or shipped strlcpy
2018-06-02 14:25:28 +02:00
Hiltjo Posthuma
25ee995ead
fix typo in comment
...
pointed out by halbeno
2018-05-22 08:43:32 +02:00
Hiltjo Posthuma
bb1e5569d0
allow some more characters in the channel name
2017-07-09 12:28:08 +02:00
Hiltjo Posthuma
704ab925e9
merge my changes to master
...
Special thanks to:
- Wolfgang Corcoran-Mathe for sending patches and testing.
- Nico Golde for maintaining ii for so long.
2017-06-02 09:54:54 +02:00
Nico Golde
714bd0cb6a
define EXIT_TIMEOUT and use that on ping timeouts. thanks Evan Gates for the idea!
2016-10-13 15:21:47 -07:00
Nico Golde
f8f3a096bc
errm eprint isnt declared here. thanks Ali H. Fardan
2016-09-07 21:17:12 +02:00
Nico Golde
584290f264
use pledge by default if compiled on openbsc and provide errno string
2016-09-06 19:58:28 +02:00
Nico Golde
a4434536cd
fix double backslash
2016-09-02 18:43:08 +02:00
Nico Golde
18580a159f
add OpenBSD pledge support - thanks Gleydson Soares
2016-09-02 16:13:43 +02:00
Vasily Kolobkov
f79e2f0953
Fix channel use after freeing in main loop
...
Signed-off-by: Nico Golde <nico@ngolde.de>
2016-02-24 23:02:19 +01:00
Vasily Kolobkov
165638e3c8
Check up on server messages
...
Signed-off-by: Nico Golde <nico@ngolde.de>
2016-02-24 23:02:13 +01:00
Nico Golde
1bc3e103c0
prevent nick collisions by only setting the nick after the server accepted it and print a message about change to server log
2015-11-04 19:35:23 -05:00
Nico Golde
63b5736e6e
use _POSIX_PIPE_BUF if PIPE_BUF is not defined (as on FreeBSD); thanks Gleydson Soares!
2015-03-22 13:37:53 +01:00
Nico Golde
7a99152ce6
add respective header for select and not implicitely include it
2012-08-14 11:57:30 +02:00
Nico Golde
aed65ee703
convert slashes to , rather than _ in channel names. , is not allowed by the RFC, _ is.
2012-07-03 17:43:56 +02:00
Nico Golde
a5a7d1b376
fix parsing of JOIN messages for certain servers, thanks van Kanakarakis
2012-06-28 15:41:57 +02:00
Nico Golde
c68beccf59
-k now points to an environment variable containing the password
2012-06-16 17:00:31 +02:00
Nico Golde
2bcd27c9e8
a little cleanup by Connor Lane Smith, thanks!
2011-10-31 21:35:12 +01:00
Nico Golde
542bc7b5bf
restructuring to stay under 500 lines ;) fix regression from 1.5 on handling unknown commands
2011-01-31 21:45:52 +01:00
Nico Golde
beb4661381
document implication of autojoin patch and now tag 1.5 for real :)
2011-01-24 17:52:35 +01:00
Nico Golde
e048dac3df
minor changes, fix fd leak due to case insensitive channel name comparison, fix treatment of raw irc commands (thanks samurai)
2011-01-24 16:46:25 +01:00
Nico Golde
566fa01e47
create in FIFO on receiving a PRIVMSG
2011-01-24 16:13:04 +01:00
Nico Golde
36ec5bc425
- prepare 1.4 release
...
- fix directory traversal using #../../ (not possible to overwrite arbitrary files, thus not marking as security fix)
- general cleanup
- documentation fixes (url, copyright, formatting)
2008-08-09 13:45:46 +02:00
Nico Golde
081c33b786
fixed possible NULL pointer reference on sparc
2007-07-16 08:00:48 +02:00
Nico Golde
81ed7e3c15
workaround, server messages about users dont open a user directory anymore, output will be sent to the server out file
2007-07-14 13:11:09 +02:00
Nico Golde
cc58fcc068
changes for ii-1.2
2007-06-23 13:37:05 +02:00
nion@aurora
fcef69cf32
enabled joining channels with password
2007-06-22 13:40:24 +02:00
Nico Golde
ab89c0c4f5
regression fix
2007-06-12 11:05:33 +02:00
Nico Golde
1cf5526ce4
copyright adjustments
2007-04-28 18:01:28 +02:00
Nico Golde
debf23c6b5
fixed wrong parsing in commands like WHOIS and NAMES
2007-02-24 17:46:21 +01:00
Nico Golde
dd0fe21a09
initialization
2007-02-04 12:14:20 +01:00
Nico Golde
f927bae102
a bit of beautify
2007-02-03 17:35:16 +01:00
Nico Golde
4fcd8047d2
small adjustments
2007-02-03 13:36:39 +01:00
Nico Golde
f763ac712f
SLOC -> LOC
2007-02-02 13:47:08 +01:00
nion@h4447.serverkompetenz.net
c8ea25a172
release prepared
2007-02-01 11:56:45 +01:00
nion@h4447.serverkompetenz.net
7e890e305d
harden ii a bit
2007-02-01 11:21:52 +01:00
nion@h4447.serverkompetenz.net
e1af846735
use TOK_CMD more safely
2007-02-01 11:04:47 +01:00
nion@h4447.serverkompetenz.net
62963ef5b6
indent stuff
2007-02-01 10:59:36 +01:00
nion@h4447.serverkompetenz.net
c1e10adfad
indents
2007-01-30 20:35:48 +01:00