Kevin Easton
75bd647d15
Switch stripansi() to stripansicodes() in the CTCP reply parser.
...
stripansi() actually just munged control-characters, so it just turned ANSI
codes into visible junk.
stripansicodes() instead leaves control characters alone but removes complete
ANSI sequences from the string. I'm not sure if even that is necessary,
really - after all, we always allowed ^B, ^C etc style formatting in CTCP
replies.
2015-08-30 22:03:38 +10:00
Tim Cava
112b38ac7a
Revert the last commit. It accidentally had autogenerated files in it.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@432 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-07 03:00:24 +00:00
Tim Cava
276fd24258
Use snprintf rather than sprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@431 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-07 02:41:16 +00:00
Tim Cava
9df878c536
Use strlcat, rather than strmcat, in do_clientinfo().
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@386 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 19:21:29 +00:00
Tim Cava
ceada1fac4
Use strlcpy, rather than strmcpy, in split_CTCP().
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@364 13b04d17-f746-0410-82c6-800466cd88b0
2013-08-21 05:57:50 +00:00
Tim Cava
1524033b3f
Use strlcpy and strlcat, rather than strmcpy, strmcat, and strcpy, in
...
do_notice_ctcp().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@363 13b04d17-f746-0410-82c6-800466cd88b0
2013-08-21 05:53:18 +00:00
Tim Cava
3808071ba6
Use strlcpy and strlcat, rather than strmcpy, strmcat, and strcpy, in
...
do_ctcp().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@362 13b04d17-f746-0410-82c6-800466cd88b0
2013-08-21 05:46:02 +00:00
Tim Cava
337dfe0d06
Don't copy into a passwd struct returned by getpwuid().
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@324 13b04d17-f746-0410-82c6-800466cd88b0
2013-08-15 09:18:14 +00:00
Kevin Easton
1cfaf1349c
Remove XLINK CTCP reply handler - it's not used for the botlink
...
functionality.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@320 13b04d17-f746-0410-82c6-800466cd88b0
2013-08-14 13:34:04 +00:00
Kevin Easton
736777bea3
Change instances of open-coded "3" in calls to prepare_command() with PC_SILENT macro.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@137 13b04d17-f746-0410-82c6-800466cd88b0
2011-09-06 06:48:57 +00:00
Kevin Easton
223926fdf2
Fix up /WILN, /WILC and /WILCR. last_ctcp is now the last CTCP request
...
recieved; last_ctcp_reply is the last reply recieved (used by /RELCR etc.)
All of the /WI* commands now do a /WII style full whois request.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@88 13b04d17-f746-0410-82c6-800466cd88b0
2010-06-26 14:43:22 +00:00
Kevin Easton
3de93b1dbc
Far-reaching changes to make BitchX compatible with 64 bit architectures
...
like x86-64, where sizeof(int) != sizeof (void *). This involves correctly
casting every function pointer from the global table to the correct
function type, which has the added benefit of allowing type-checking of
function arguments and return values.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@26 13b04d17-f746-0410-82c6-800466cd88b0
2008-04-30 13:57:56 +00:00
Kevin Easton
533c3dbcbf
Turn on SVN keyword replacement for $Date$, $Author$, $Revision$, $Id$ for all
...
*.c and *.h files.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/branches/ircii-pana-1.1@3 13b04d17-f746-0410-82c6-800466cd88b0
2008-02-25 09:49:14 +00:00
Kevin Easton
28febcfea9
Initial import of the ircii-pana-1.1-final source tree.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
2008-02-25 09:25:32 +00:00