Tim Cava
a266f0bad3
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@495 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-02 21:20:33 +00:00
Tim Cava
dd030f6e67
Make function_channelnicks() use the sort_type optionally passed in.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@494 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-02 21:15:36 +00:00
Tim Cava
deb1c71b8c
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@493 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-02 21:09:37 +00:00
Tim Cava
8d5882a9ef
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@492 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-02 19:59:13 +00:00
Tim Cava
e7da953fc1
Don't check if the address of an array is NULL.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@491 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-02 19:40:31 +00:00
Tim Cava
04e898bb57
Cleanup quotecmd() a little bit. Remove a set but unused variable.
...
Kill commented out code that normally prevents some commands from
being quoted.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@490 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-01 20:02:16 +00:00
Tim Cava
3138017406
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@489 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-01 19:45:47 +00:00
Tim Cava
101204b0b9
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@488 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-01 19:44:55 +00:00
Tim Cava
ae4014808f
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@487 13b04d17-f746-0410-82c6-800466cd88b0
2014-02-28 23:52:33 +00:00
Tim Cava
7791aec8d6
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@486 13b04d17-f746-0410-82c6-800466cd88b0
2014-02-28 23:47:14 +00:00
Tim Cava
c45a43c8e2
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@485 13b04d17-f746-0410-82c6-800466cd88b0
2014-02-28 23:41:57 +00:00
Tim Cava
a9cc4ec891
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@484 13b04d17-f746-0410-82c6-800466cd88b0
2014-02-28 23:39:57 +00:00
Tim Cava
ebc3ff9b2b
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@483 13b04d17-f746-0410-82c6-800466cd88b0
2014-02-28 23:31:58 +00:00
Tim Cava
3fe6a86f64
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@482 13b04d17-f746-0410-82c6-800466cd88b0
2014-02-28 23:29:22 +00:00
Tim Cava
d8b8c169ab
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@481 13b04d17-f746-0410-82c6-800466cd88b0
2014-02-28 22:22:33 +00:00
Tim Cava
3494a55541
Remove variables that are set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@480 13b04d17-f746-0410-82c6-800466cd88b0
2014-02-28 22:13:49 +00:00
Kevin Easton
f13de53ad4
Fix bug introduced in r243 where /LASTLOG without -FILE no longer worked.
...
Reported by jeezy.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@479 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-24 13:15:22 +00:00
Kevin Easton
b300961524
alias.c: Remove unused variables in pmatch_cmd_alias(), pmatch_assign_alias() and do_stack_alias().
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@478 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-18 13:13:26 +00:00
Kevin Easton
f22dc54b13
Change BX_add_to_screen() and BX_skip_incoming_mirc() to use char * rather than unsigned char * arguments.
...
This clears up a few pointer type mismatch warnings.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@477 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-18 12:38:07 +00:00
Kevin Easton
ced7f9bcc9
keys.c: Convert most uses of unsigned char to char, clearing up warnings.
...
This also fixes the ability to bind to key sequences ending in ^.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@476 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-17 21:37:32 +00:00
Kevin Easton
de3d310678
Change RETURN_STR() macro to silence 'always evaluates to true' warnings.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@475 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-16 11:35:41 +00:00
Kevin Easton
87de292f53
cdcc.c: Cast time_t to long before formatting with %ld.
...
Fixes platforms where time_t and long are not the same size, like netbsd i386.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@473 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-16 03:18:39 +00:00
Kevin Easton
d03781f45b
Fix the $timer() scripting function.
...
This function never worked - function_timer() was creating a string but then
never throwing it away and returning a part of the argument instead, which
then caused a crash because it couldn't be freed later in the expression
parsing.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@472 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-16 03:17:13 +00:00
Kevin Easton
ffea653764
Fix the /TKB (timed kickban) command.
...
An incorrect pointer was being passed to malloc_sprintf(), causing a
crash. Use m_sprintf() instead.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@471 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-16 03:13:26 +00:00
Kevin Easton
5a3a74d38a
functions.c: Fix mismatched format strings in several aliases and functions.
...
Affected functions are alias_idle(), alias_serverlag(), alias_awaytime(),
function_serverpass(), function_checkuser() and function_isuser().
This fixes $serverpass(), which seems to have never worked right.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@470 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-16 01:33:53 +00:00
Kevin Easton
55d3b28060
dcc.c: Fix mismatching format strings in get_dcc_info() and dcc_ftpcommand().
...
Cast time_t value to long and use %ld to print.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@469 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-16 00:18:39 +00:00
Kevin Easton
e7c8240622
Use long instead of time_t in send_kline(), and cast time_t values to long in sping() when using %ld format.
...
This fixes bugs on netbsd i386, where time_t is longer than long.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@466 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-15 13:57:46 +00:00
Kevin Easton
77ee55f33f
Simplify function_uptime() and change it to use long instead of time_t.
...
This fixes a series of compiler warnings on netbsd i386.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@465 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-15 12:55:44 +00:00
Kevin Easton
70b1c060f3
Change function_tdiff2() to use long instead of time_t, which fixes warnings on netbsd i386.
...
Also rework function to use snprintf() instead of sprintf().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@464 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-15 12:11:19 +00:00
Kevin Easton
b2ae3c888f
Cleanup get_term_capability(), silences some warnings.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@463 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-13 13:35:10 +00:00
Kevin Easton
58b5d39fea
Remove unnecessary variable proctitlestr.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@462 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-13 11:43:57 +00:00
Kevin Easton
3b99834e00
Partially revert r456.
...
An snprintf() call that creates IRC protocol messages must use
(MAX_PROTOCOL_SIZE + 1) as 'n' rather than the buffer size.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@461 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-13 09:57:15 +00:00
Tim Cava
582d720ea4
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@460 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:29:21 +00:00
Tim Cava
496d3dc8ff
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@459 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:29:16 +00:00
Tim Cava
f69404b0f9
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@458 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:29:11 +00:00
Tim Cava
4f5aab355b
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@457 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:29:05 +00:00
Tim Cava
317b84ee9d
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@456 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:29:00 +00:00
Tim Cava
c9d059cee6
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@455 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:55 +00:00
Tim Cava
1bafc85e23
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@454 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:48 +00:00
Tim Cava
dd88392b15
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@453 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:38 +00:00
Tim Cava
3287f7775b
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@452 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:31 +00:00
Tim Cava
2677dc4c60
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@451 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:26 +00:00
Tim Cava
bfc147418a
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@450 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:19 +00:00
Tim Cava
9d7c4f93d0
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@449 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:10 +00:00
Tim Cava
c7e6e5ea08
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@448 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:03 +00:00
Tim Cava
c1530e9406
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@447 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:24:14 +00:00
Tim Cava
78265498b1
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@446 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:23:51 +00:00
Tim Cava
224143f653
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@445 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:23:25 +00:00
Tim Cava
db8c5cdc4f
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@444 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:22:00 +00:00
Tim Cava
6fed90327c
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@443 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:20:39 +00:00