70ce80dced
Minor cleanups in wserv.c
Kevin Easton
2017-11-24 17:29:51 +11:00
ba1b9742ec
Simplify calling of rsindex() and strsearch()
Kevin Easton
2017-11-23 17:22:38 +11:00
de303ba554
Change scr-bx to list the detached screens if more than one matches
Kevin Easton
2017-11-18 00:20:36 +11:00
a3e6f10be4
Simplify find_detach_socket() in scr-bx
Kevin Easton
2017-11-17 23:51:05 +11:00
0abfa67aa8
Don't pass -1 as the length to write() if read() fails
Kevin Easton
2017-11-17 23:06:46 +11:00
149b3206e0
Improve error handling around file descriptors in wserv
Kevin Easton
2017-11-17 22:55:06 +11:00
abfe84eb5c
Use correct formats / types in snprintf() calls in tcl.c
Kevin Easton
2017-11-17 22:48:03 +11:00
1569d859af
Clean up upper() and lower()
Kevin Easton
2017-11-17 17:43:22 +11:00
0d5698d41b
Add inv_strpbrk() function and convert equivalent sindex() calls
Kevin Easton
2017-11-17 17:19:07 +11:00
8c7d9334dd
Replace uses of sindex() with constant accept strings with strpbrk() / strchr()
Kevin Easton
2017-11-17 16:23:39 +11:00
eb6ffc7395
Convert strsearch() arguments to const char *
Kevin Easton
2017-11-17 15:47:33 +11:00
e8ce5fb973
Convert sindex() and rsindex() to use const char * arguments
Kevin Easton
2017-11-17 12:21:12 +11:00
fea88185f8
Clean up function move_to_abs_word() and rename to move_to_word()
Kevin Easton
2017-11-14 23:15:33 +11:00
5e40c1ac01
Don't move pointer before start of object in move_word_rel()
Kevin Easton
2017-11-12 22:43:20 +11:00
a71ee883e1
Make "You can't hide an invisible window" message respect /SET WINDOW_QUIET
Kevin Easton
2017-11-10 17:16:58 +11:00
c6f420b53d
Simplify get_window_by_desc()
Kevin Easton
2017-11-10 17:12:09 +11:00
3ec950a7d7
Allow $mychannels() to query a window attached to a different server
Kevin Easton
2017-11-10 16:57:26 +11:00
a028aebdb9
Fix crash when passing $mychannels() a non-existent window refnum
Kevin Easton
2017-11-10 16:53:32 +11:00
8a176c6950
Remove pointless check for unsigned number < 0 in get_window_by_refnum()
Kevin Easton
2017-11-09 23:50:13 +11:00
ce55f5eaa8
Move unsetting of UPDATE_STATUS flag into update_window_status()
Kevin Easton
2017-11-09 23:45:09 +11:00
c881d1d20f
Simplify condition in set_current_channel_by_refnum()
Kevin Easton
2017-11-09 23:35:28 +11:00
f81126186c
Simplifications in window_query()
Kevin Easton
2017-11-09 23:32:56 +11:00
50999b3d5b
Remove six dll_ variables from the module exports table
Kevin Easton
2017-11-06 17:14:12 +11:00
a58078de7e
Fix size argument in call to memset in MD5Final()
Kevin Easton
2017-11-06 17:07:58 +11:00
fcda7a4d55
Switch cavlink and nap plugins to use save_dllvar() function for saving SETs
Kevin Easton
2017-11-06 17:01:36 +11:00
3f047ab2a9
Add save_dllvar() function exported to modules
Kevin Easton
2017-11-06 16:54:51 +11:00
4b8ffbc52a
Improve error message on module version mismatch
Kevin Easton
2017-11-06 16:52:14 +11:00
ae4a45179e
Remove unnecessary NULL check in whoreply()
Kevin Easton
2017-11-03 16:32:33 +11:00
0703126773
Factor out common dll variable list lookup into lookup_dllvar()
Kevin Easton
2017-11-03 16:22:57 +11:00
3b2793877d
Change set_var_value() argument from int to enum VAR_TYPES
Kevin Easton
2017-11-03 14:48:26 +11:00
59d237d819
Remove unused code branch in setcmd()
Kevin Easton
2017-11-03 01:18:04 +11:00
574053da52
Split out set_var_value_dll() from set_var_value()
Kevin Easton
2017-11-03 01:14:30 +11:00
1797858d0b
Extract common core from set_var_value() into helper function
Kevin Easton
2017-11-02 23:57:15 +11:00
1cb3775ced
Fix typo testing VIF_CHANGED
Kevin Easton
2017-10-27 20:35:33 +11:00
a220b8aa7f
Rename VIF_BITCHX to VF_BITCHX
Kevin Easton
2017-10-26 17:41:05 +11:00
571aafcb45
Add helper function save_vars_by_flags() for saving variables
Kevin Easton
2017-10-26 17:36:28 +11:00
dc30b852e1
Add VF_NO_SAVE flag to mark variables that shouldn't be saved
Kevin Easton
2017-10-26 16:12:19 +11:00
796eef3f99
Removed unused VF_NODAEMON flag
Kevin Easton
2017-10-26 15:56:31 +11:00
46047b058c
Remove unused function clear_sets()
Kevin Easton
2017-10-25 17:00:48 +11:00
481970b30d
Use correct type for ircii_rem_str()
Kevin Easton
2017-10-24 18:48:36 +11:00
ff048fbee9
Shitlist level 3/4 should kick regardless of /CSET KICK_IF_BANNED
Kevin Easton
2017-10-23 00:32:05 +11:00
60b40cf332
Simplify conditionals in check_prot()
Kevin Easton
2017-10-20 16:12:14 +11:00
bac141898b
Correct spelling of some client messages, comments and function names
gdinit
2017-09-25 14:58:31 +01:00
b102b9d5c9
Remove pointless NULL test in translat.c
Kevin Easton
2017-10-14 23:18:26 +11:00
5839f2b393
Support fractional-second intervals on recurring timers
Kevin Easton
2017-10-11 23:21:14 +11:00
bbd18ba47e
Introduce time_offset() helper and replace open-coded versions in timer.c
Kevin Easton
2017-09-20 23:07:52 +10:00
604fcf794b
Remove unused kill_timer() and get_delete_timer() functions
Kevin Easton
2017-09-20 15:31:41 +10:00
5bd8a40cf8
Change $geom() to return current screen's geometry, not the original terminal's
Kevin Easton
2017-09-15 17:39:52 +10:00
70ac43ce77
Remove globals 'li' and 'co' in term.c
Kevin Easton
2017-09-15 17:15:24 +10:00
c9b0e654b5
Remove unused variables BC, UP and my_PC
Kevin Easton
2017-09-02 07:03:10 +10:00
9080475ff7
Remove unnecessary typecasts in initialisation of tcaps[]
Kevin Easton
2017-09-02 04:55:19 +10:00
4a3cff53f4
Simplify and improve justification step of status formatting, and use the same code for $statsparse()
Kevin Easton
2017-08-23 02:21:42 +10:00
f7de661f2f
Use L suffixed constant to match type of server.flags / server.flags2 field in (get|set)_server_flag()
Kevin Easton
2017-08-22 23:07:49 +10:00
05633c9bc3
Consistently use SIGNAL_HANDLER() macro to define signal handler functions
Kevin Easton
2017-08-22 22:48:06 +10:00
742eeb33f7
Restore terminal settings after flushing output, not before
Kevin Easton
2017-08-22 22:26:50 +10:00
73148fa4a4
Remove unused server flags CLOSE_PENDING and CLOSING_SERVER, rename LOGGED_IN to SF_LOGGED_IN
Kevin Easton
2017-07-19 07:57:52 +10:00
0fea2b97a4
Remove exported function create_server_list()
Kevin Easton
2017-07-17 12:59:49 +10:00
d2e576a774
Fix $myservers(1) to only return registered server refnums
Kevin Easton
2017-07-17 12:48:28 +10:00
cd9c358eed
Fix CHANGE_NICK_ON_KILL feature
Kevin Easton
2017-07-15 23:29:14 +10:00
b481ed1e6e
Remove pointless NULL check in repaint_window()
Kevin Easton
2017-07-15 22:24:09 +10:00
ce780c5b63
Use character constants instead of bare integers for escape character in strip_ansi()
Kevin Easton
2017-07-15 22:17:48 +10:00
df12f6860a
Remove unused 'in_help' flag from log_put_it()
Kevin Easton
2017-07-15 00:33:24 +10:00
d68d06480c
Remove unused argument from log_put_it(), move declaration to output.h
Kevin Easton
2017-07-15 00:16:18 +10:00
9c46ddddb6
Check for unset MSGLOG_FILE or CTOOLZ_DIR, or failed stat(), in readlog()
Kevin Easton
2017-07-15 00:07:25 +10:00
a6a5a19e28
Fix memory leak in /QUEUE -FLUSH
Kevin Easton
2017-07-11 19:01:09 +10:00
dbd37bc35d
Messages sent by /SV and /PASTE should be logged in the send log
Kevin Easton
2017-07-09 00:14:15 +10:00
bb616e0626
Change send_text() to combine command, hook and log arguments into one set of flags
Kevin Easton
2017-07-09 00:08:04 +10:00
496bbc8b74
Add send_text() flag STXT_LOG
Kevin Easton
2017-07-08 21:49:59 +10:00
1bceb5ed86
Pass STXT_NOTICE flag instead of command string to functions downstream of send_text()
Kevin Easton
2017-07-08 21:37:08 +10:00
f8c76a4351
Include ircaux.h in qbx.c
Kevin Easton
2017-07-08 21:34:28 +10:00
a8e33b5efd
Include irc.h in struct.h for required macros and typedefs
Kevin Easton
2017-07-08 21:32:42 +10:00
2d0b3e728f
Replace 'hook' and 'noisy' flags in functions downstream of send_text() with !(stxt_flags & STXT_QUIET)
Kevin Easton
2017-07-07 15:16:12 +10:00
2c8671f3dd
Simplify send_text() by separating out special targets into another function
Kevin Easton
2017-07-05 17:36:52 +10:00
ac84793dd6
Switch from direct tcl_interp->result access to Tcl_GetStringResult() and Tcl_AppendResult()
Kevin Easton
2017-07-01 00:47:20 +10:00
356eb699d0
Remove unnecessary repeated lines in parse_command()
Kevin Easton
2017-06-30 23:05:05 +10:00
19639ed608
Minor cleanups in send_text()
Kevin Easton
2017-06-29 16:51:26 +10:00
57827008a1
Change sed_encrypt_msg() so it doesn't modify the passed message in-place
Kevin Easton
2017-06-28 23:03:58 +10:00
3c2028e167
Rename crypt_msg() / decrypt_msg() to sed_encrypt_msg() / sed_decrypt_msg() and move to ctcp.c
Kevin Easton
2017-06-28 22:13:33 +10:00
9b0d3e4ab5
Type improvements to the internal encrypt/decrypt and CTCP quoting API
Kevin Easton
2017-06-28 16:54:11 +10:00
c62e099d80
Add /FSET SEND_ENCRYPTED_PUBLIC format
Kevin Easton
2017-06-28 00:03:09 +10:00
88f93c1de3
Only include color.h in source files that require it
Kevin Easton
2017-06-27 18:22:45 +10:00
72ee3e6297
Correct order of arguments to /FSET SEND_ENCRYPTED_MSG and SEND_ENCRYPTED_NOTICE and improve default formatting
Kevin Easton
2017-06-27 16:27:59 +10:00
ed597221f2
Add ENCRYPTED_PUBLIC and ENCRYPTED_PUBLIC_NOTICE formats
Kevin Easton
2017-06-27 14:15:10 +10:00
0c51ac19d4
Cleanups and simplifications in p_privmsg
Kevin Easton
2017-06-26 17:11:08 +10:00
0e9925f122
Minor simplification to beep_em
Kevin Easton
2017-06-26 16:54:50 +10:00
06aa5cb671
Move all handling of SED messages and notices into ctcp.c, re-enable SED notices
Kevin Easton
2017-06-26 15:13:40 +10:00