CVS log for epic5/source/commands.c

Epicsol.org
(back) Up to [Epic CVS] / epic5 / source

Request diff between arbitrary revisions


Default branch: MAIN
Bookmark a link to: HEAD / (download)

Revision 1.183 / (view) - annotate - [select for diffs] , Tue Jul 1 23:10:28 2008 UTC (3 months ago) by jnelson
Branch: MAIN
CVS Tags: HEAD
Changes since 1.182: +4 -1 lines
Diff to previous 1.182
* Add $serverctl(READ_FILE filename) to add servers from a servers file.
* Add some preliminary code for sending a /msg to a logfile.
* Make scrollback_start/end use "scroll up/down 999,999 lines"
* This is for future consolidation of the scrollback code.

Revision 1.182 / (view) - annotate - [select for diffs] , Thu May 15 17:04:24 2008 UTC (4 months, 3 weeks ago) by alex
Branch: MAIN
CVS Tags: epic5-0_3_9
Changes since 1.181: +1 -2 lines
Diff to previous 1.181
xecho's -all option clobbered the next word as if it took params

Revision 1.181 / (view) - annotate - [select for diffs] , Thu May 15 16:57:54 2008 UTC (4 months, 3 weeks ago) by alex
Branch: MAIN
Changes since 1.180: +3 -3 lines
Diff to previous 1.180
xecho's -all option clobbered the first word after it as if it took params

Revision 1.180 / (view) - annotate - [select for diffs] , Thu Apr 10 22:48:21 2008 UTC (5 months, 3 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_8
Changes since 1.179: +6 -3 lines
Diff to previous 1.179
Fix a NULL deref for a rather unreasonable situation.

Revision 1.179 / (view) - annotate - [select for diffs] , Fri Apr 4 23:20:38 2008 UTC (6 months ago) by jnelson
Branch: MAIN
Changes since 1.178: +4 -4 lines
Diff to previous 1.178
* Phase two of larne's patch is to isolate features that require job control
* You can #define NO_JOB_CONTROL to turn off fork/exec type stuff.
* Soon, the configure script will auto-grok this.

Revision 1.178 / (view) - annotate - [select for diffs] , Fri Apr 4 03:51:05 2008 UTC (6 months ago) by jnelson
Branch: MAIN
Changes since 1.177: +2 -2 lines
Diff to previous 1.177
* Roll in a bunch of changes from larne to make epic5 more vms-friendly
* Rename if.h -> ifcmd.h  (larne) -- Make sure you rerun configure!
* Run make depend to pick up name change of if.h
* Check for <sys/param.h> in configure (larne)
* Extern funcs are case insensitive in strict c90, fix (larne)
* Rename options -> options.h since vms requires a dot in filename (larne)
* Change "readonly" -> "rdonly" since "readonly" is a symbol in vms. (larne)
* Pull in "compat.h" for gailib.c and glob.c (larne)
* Set stdout to be explciitly line buffered at startup (larne)
* Returning a value from void functino forbidden by strict c90. fix (larne)
* Fix some compiler warnings that were lying around.
* There are more changes forthcoming, these were the easy ones.

Revision 1.177 / (view) - annotate - [select for diffs] , Sat Mar 29 18:00:16 2008 UTC (6 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.176: +2 -2 lines
Diff to previous 1.176
* Roll forward portability changes from epic4-2.10 (larne)
* This also includes term.h -> termx.h -- Make sure you rerun configure!

Revision 1.176 / (view) - annotate - [select for diffs] , Sat Feb 16 23:42:05 2008 UTC (7 months, 2 weeks ago) by jnelson
Branch: MAIN
Changes since 1.175: +5 -7 lines
Diff to previous 1.175
Fix all the compile warnings that I let go way too long.

Revision 1.175 / (view) - annotate - [select for diffs] , Tue Jan 22 06:44:15 2008 UTC (8 months, 2 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_7, epic5-0_3_6
Changes since 1.174: +16 -3 lines
Diff to previous 1.174
* Make /xecho -w -1 go to the current window, for compat with epic4 (rb Black)
* Make the /server list show the vhost you're using.
* /LOADing an executable file results in a warning and not an error.
* Fix input line so it doesn't display hidden contents after ^L (rb wjr)
* Add a $strptime() function, but I still need a strptime() compat version.
* Add $ignorectl(SUSPEND) and $ignorectl(UNSUSPEND) to turn off ignores.

Revision 1.174 / (view) - annotate - [select for diffs] , Sat Jan 5 19:00:26 2008 UTC (9 months ago) by jnelson
Branch: MAIN
Changes since 1.173: +23 -3 lines
Diff to previous 1.173
* $info(o) now includes 'r' for libarchive, and 'x' for iconv support
* Unconditinally unset GREP_OPTIONS in configure (rb Pegasus)
* Fix /oper password being shown because term_echo() not called. (rb wjr)
* Properly handle multiple spaces between protocol tokens (rb Krisp)
* Fix crash with standard_warning_level() when you do /window level nonsense.
* Support /input "prompt" (args) {code}. See UPDATES. (rb kreca) (fusion)

Revision 1.173 / (view) - annotate - [select for diffs] , Sat Dec 1 04:52:05 2007 UTC (10 months ago) by jnelson
Branch: MAIN
Changes since 1.172: +34 -24 lines
Diff to previous 1.172
* Everything below is from fusion (Alexander Grotewohl)
* If libarchive is present, support zip/tar files in /load and $open()
* Create a new "epic load file" data type that wraps FILE or libarchive.
* Extend uzfopen() to use the new "epic load file" data type.
* Extend the loader to honor the new "epic load file" data type
* Extend $open() [read only for now] to honor the epic load file data type
* Not all operations are supported on zip files.
* Add new function $fix_width() returns string with a guaranteed printable len
* End of things contributed by fusion (Alexander Grotewohl)

Revision 1.172 / (view) - annotate - [select for diffs] , Thu Sep 20 03:00:10 2007 UTC (12 months, 2 weeks ago) by jnelson
Branch: MAIN
Changes since 1.171: +15 -4 lines
Diff to previous 1.171
* Create aliases for [url|b64][en|de]code, sedcrypt, and sha256 into builtins.
* Comment out builtin [url|b64][en|de]code, sedcrypt, sha256 builtin functions.
* Change /xquote -u to use xform() instead of urldecode().
* Change dcc_url[en|de]code to use xform() instead of urldecode().
* Change /on ssl_server_cert to use xform() isntead of urldecode().
* This allows me to comment out old urldcode/base64decode stuff. yay!

Revision 1.171 / (view) - annotate - [select for diffs] , Fri Sep 7 17:07:29 2007 UTC (12 months, 4 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_5
Changes since 1.170: +3 -1 lines
Diff to previous 1.170
* Revert commit 1498 (the dcc stuff) -- it was half baked.
* Fix warnings found with --with-warns.

Revision 1.170 / (view) - annotate - [select for diffs] , Tue Aug 14 01:29:50 2007 UTC (13 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.169: +3 -3 lines
Diff to previous 1.169
* Add /SET DEFAULT_REALNAME and DEFAULT_USERNAME
* Add scripted /set realname and /ircuser in builtins for backwards compat.

Revision 1.169 / (view) - annotate - [select for diffs] , Mon Jun 25 21:09:29 2007 UTC (15 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.168: +19 -5 lines
Diff to previous 1.168
* Add new level SYSERR (see UPDATES)
* Add a server refnum to syserr() to send the syserr to the proper window.
* Add a server refnum to new_open() so we can pass it to syserr().
* Add new flag to /XECHO, /XECHO -AS (output to all windows on server)
* This should make syserrs go to the "correct window" most of the time (larne)

Revision 1.168 / (view) - annotate - [select for diffs] , Wed May 30 01:26:23 2007 UTC (16 months, 1 week ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_4
Changes since 1.167: +3 -2 lines
Diff to previous 1.167
* Add a server param to what_channel() so i can use it in send_text() later.
* Add length of 'meta' arg to ciphers so 'meta' doesn't have to be c string

Revision 1.167 / (view) - annotate - [select for diffs] , Wed May 16 03:43:46 2007 UTC (16 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.166: +12 -10 lines
Diff to previous 1.166
* Change /say (or the empty command) to send to channel first, query second
* Add $dccctl(SET|GET ref WANT_PORT) to set the -p flag.
* Change tabkey.jm to use /msg -serv/nick instead of /msg serv:nick

Revision 1.166 / (view) - annotate - [select for diffs] , Sat May 12 04:15:11 2007 UTC (16 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.165: +2 -2 lines
Diff to previous 1.165
* Add socks5p.h from epic4 so we can build with socks5 again.
* Remember, it's ./configure --with-socks5=/usr/local/lib
* Make update_input() take a screen as an argument, to update one screen only.
* Make /window create screen's input lines work again (rb kitambi)

Revision 1.165 / (view) - annotate - [select for diffs] , Wed Apr 25 04:24:56 2007 UTC (17 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.164: +54 -1 lines
Diff to previous 1.164
Move some functions out of input.c to places where they make more sense.
This makes it easier for me to re-org input.c.

Revision 1.164 / (view) - annotate - [select for diffs] , Thu Apr 12 02:34:07 2007 UTC (17 months, 3 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_3
Changes since 1.163: +13 -1 lines
Diff to previous 1.163
* Add /xecho -t <target> which outputs to a target, for kreca

Revision 1.163 / (view) - annotate - [select for diffs] , Thu Apr 12 02:24:14 2007 UTC (17 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.162: +4 -4 lines
Diff to previous 1.162
* Add arg to panic() controlling whether panic is sent via QUIT (rb black)

Revision 1.162 / (view) - annotate - [select for diffs] , Thu Apr 12 01:37:24 2007 UTC (17 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.161: +2 -2 lines
Diff to previous 1.161
* Fix warnings found by gcc4 and run make depend.
* Add check for -Wno-pointer-sign to configure; makes using gcc4 less painful.

Revision 1.161 / (view) - annotate - [select for diffs] , Wed Jan 31 03:24:04 2007 UTC (20 months ago) by jnelson
Branch: MAIN
Changes since 1.160: +2 -7 lines
Diff to previous 1.160
* Don't auto_whowas channels.
* Remove epicsol email addresses that do not exist any longer.

Revision 1.160 / (view) - annotate - [select for diffs] , Sat Jan 27 18:47:03 2007 UTC (20 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.159: +4 -4 lines
Diff to previous 1.159
* Change startup code so it outputs the pid of the bot process for -b.
* Fix $info(o) bug.  rb zlonix
* Output the errno value ret by failed nonblocking server connects on error.
* Add auto-close boolean flag for server (see UPDATES)

Revision 1.159 / (view) - annotate - [select for diffs] , Sat Nov 4 17:37:34 2006 UTC (23 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_2
Changes since 1.158: +16 -2 lines
Diff to previous 1.158
Add new function $curcmd(), the currently executing command (nullie)

Revision 1.158 / (view) - annotate - [select for diffs] , Thu Oct 5 23:12:39 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.157: +2 -2 lines
Diff to previous 1.157
* Make $urlencode() rfc3986-ish, converting all non-unreserved chars
* Change ServerInfo to use const char's since we don't modify them directly.
* Reorganize how ServerInfos are used, into "temporary" and "permanent" types
* Convert Server's use of ServerInfo's into safe permanent types.
* Add /server -update <refnum> <desc> to change server descs on the fly.
* Fix typo in /invite.
* Fix 'country' script by wrapping it with xdebug dwords.

Revision 1.157 / (view) - annotate - [select for diffs] , Sat Sep 30 00:36:08 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.156: +1 -6 lines
Diff to previous 1.156
* Pass double ptr to remove_bindings_recurse() to fix exit-time memory leak.
* Remove /set bad_style, input_aliases, security,  (unused)
* Remove /set ssl_certfile, ssl_keyfile, and ssl_path (unused)
* Add a (ServerInfo) object to (Server), switch to using it.
* Remove a bunch of unused thingees in (Server) while i'm here.
* Restore /set reverse_status_line to a builtin. oh well.

Revision 1.156 / (view) - annotate - [select for diffs] , Thu Sep 28 22:18:05 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.155: +2 -2 lines
Diff to previous 1.155
* Teach history script to use parsekey reset_line (nullie)
* Fix one bogon (still others left!) in map script
* Improvements to 'save' script (blackjac)
* Change /on unknown_command to include // prefix if that was used (nullie)
* Fix behavior of /set old_server_lastlog_level (rb larne, fixed by nullie)

Revision 1.155 / (view) - annotate - [select for diffs] , Sat Sep 23 01:56:44 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.154: +1 -5 lines
Diff to previous 1.154
Fix compiler warnings, should not be any functional changes.

Revision 1.154 / (view) - annotate - [select for diffs] , Thu Sep 21 11:51:16 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.153: +2 -2 lines
Diff to previous 1.153
Add /on unknown_command, from nullie (thanks!)

Revision 1.153 / (view) - annotate - [select for diffs] , Thu Sep 21 11:09:09 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.152: +20 -2 lines
Diff to previous 1.152
* Finish implementation of /stack push|pop set with symbol table, rb nullie.
* Preliminary work making @#chan public show up in #chan's window.

Revision 1.152 / (view) - annotate - [select for diffs] , Fri Sep 8 21:52:50 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.151: +6 -2 lines
Diff to previous 1.151
* Fix finite()/isfinite() madness.
* Look for clock_gettime() in -lrt for ubuntu.
* Automatic reconnect from nullie. yay!
* Change /xecho -v to always output to current window if it's visible.
* Fix /on's with arglists, so lower serial nums don't corrupt $*. [rb nullie]
* Fix memory leak with $url(en|de)code() [rb nullie]
* Change /server - so it calls disconnect() directly
* Fix const correctness problems with sha2.c

Revision 1.151 / (view) - annotate - [select for diffs] , Fri Sep 1 00:53:00 2006 UTC (2 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.150: +7 -5 lines
Diff to previous 1.150
* Fix /whois so trailing spaces don't look like real words.
* Change ltoa() to my_ltoa() for hpux's sake
* Change finite() to isfinite() for hpux's sake

Revision 1.150 / (view) - annotate - [select for diffs] , Sun Aug 27 19:12:04 2006 UTC (2 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.149: +7 -2 lines
Diff to previous 1.149
* Finally whack unused /set status_truncate_rhs
* New versions of autojoin and reconnect from nullie
* Fix /xecho -l for larne. yay!

Revision 1.149 / (view) - annotate - [select for diffs] , Wed Jul 5 22:04:40 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_1
Changes since 1.148: +2 -1 lines
Diff to previous 1.148
Fix bug with removing a crypto with a server desc
Add /encrypt -clear for debugging purposes.

Revision 1.148 / (view) - annotate - [select for diffs] , Sat Jul 1 03:17:12 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.147: +8 -10 lines
Diff to previous 1.147
* Add SEDSHA cipher type, which is better than SED, and always available.
* Add my_sleep|isreadable|iswritable() funcs to phase out rogue selects()h
* Add support for multiple concurrent servers to /encrypt. yay!
* Store the length of the Crypt key within the key itself.
* This moves us closer to being able to decrypt arbitrary data.
* Test all of the cipher types, incl. compat of CAST with ircII.  All set!

Revision 1.147 / (view) - annotate - [select for diffs] , Thu Jun 29 00:13:53 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.146: +3 -11 lines
Diff to previous 1.146
___ WARNING ___ This stuff is all wildly un(der)tested.
I will get to that soon!  But I'm too excited about this to sit on it.

* Add AESSHA256 support (AES256 using the SHA256 digest of your passkey)
* Rename "EXTCRYPT" to "PROGCRYPT"
* Migrate SED support from crypt.c to crypto.c
* Integrate SED and extprog support into the mainline [de]cipher_message()
* Refactor [de]cipher_message() to be less lame.
* Support "anycrypt" support (AESSHA, AES, BLOWFISH, CAST5, SED, PROG)
* Include sha256 implementation from Karll.  Thanks Karll!
* Unify the ctcp handling of all crypto ctcps
* Add $sha256() function to test sha support (digest)
* Make funcs in crypto.c static and just expose [de]crypt_msg().
* This finishes the divide between crypt.c (front end) and crypto.c (back end)
* Fix a gazillion compiler warnings and sort out const/unsigned char issues.

Revision 1.146 / (view) - annotate - [select for diffs] , Tue Jun 27 01:51:22 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.145: +5 -22 lines
Diff to previous 1.145
AES support!

Revision 1.145 / (view) - annotate - [select for diffs] , Tue Jun 27 00:42:35 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.144: +27 -3 lines
Diff to previous 1.144
* Support cast5/blowfish encryption a la ircII.
* Fix build for non-ssl users.

Revision 1.144 / (view) - annotate - [select for diffs] , Fri Jun 23 04:03:11 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.143: +1 -34 lines
Diff to previous 1.143
* Support AI_ADDRCONFIG in our builtin AI_MASK/getaddrinfo().
* Make set[_non]_blocking extern.
* Support NEWIO_SSL_CONNECT as a new_open() type.
* Add a new ssl_connect() io callback function for NEWIO_SSL_CONNECT.
* New scripts from weirdo: autojoin, autoquery, floodprot, renumber
* New version of reconnect script from weirdo.
* GC the fixed-alist support (last used by /quote and protocol handler)
* Reorg server SSL negotation stuff to be nonblocking. yay!
* Comment all sorts of stuff in ssl.c.

Revision 1.143 / (view) - annotate - [select for diffs] , Fri Jun 9 02:19:14 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.142: +3 -8 lines
Diff to previous 1.142
Make a header file for external lang support to cut down on the number of
'extern' decls we have inside functions.  Clean up warnings and stuff.

Revision 1.142 / (view) - annotate - [select for diffs] , Wed Jun 7 01:17:06 2006 UTC (2 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.141: +5 -5 lines
Diff to previous 1.141
* Rework configure mojo for perl, ruby, tcl to autogrok compile stuff.
* Run make depend again.
* Update the DCC "last time" value regularly.

Revision 1.141 / (view) - annotate - [select for diffs] , Tue Jun 6 04:08:48 2006 UTC (2 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.140: +110 -111 lines
Diff to previous 1.140
* Eliminate the third argument to expand_alias(), the statement spanner.
* Rename parse_line() to parse_block() to better reflect its duties.
* Make parse_block() static.  Everything needs to call runcmds() now.
* Eliminate the local-stack-creating feature of parse_block(), callers do this.
* Rename 'line' to 'stmt' in parse_statement().
* Sort of forget to re-implement /set cmdchars.  The / is the cmdchar.
* Try to optimize parse_statement() and next_statement() some.

Revision 1.140 / (view) - annotate - [select for diffs] , Tue Jun 6 02:55:10 2006 UTC (2 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.139: +12 -2 lines
Diff to previous 1.139
* Ruby support. yay!
* Add a /tcl command, just for laughs.  Same as perl.

Revision 1.139 / (view) - annotate - [select for diffs] , Sat Jun 3 15:47:04 2006 UTC (2 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.138: +8 -7 lines
Diff to previous 1.138
Add a /perl command, just for laughs
Fix some compiler warnings.

Revision 1.138 / (view) - annotate - [select for diffs] , Thu Jun 1 22:44:14 2006 UTC (2 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.137: +207 -307 lines
Diff to previous 1.137
* Constify get_*_alias(), so lookups can't modify the actual alias this way.
* Rename parse_command() to parse_statement().
* Create a next_statement() to figure out how long the next stmt is.
* Stop using expand_alias() to rip apart statements. yay!
* Refactor parse_command and parse_statement to better define their roles.
* Push responsibility for expansion to parse_statement, someday, to cmds!
* Push responsibility for handling block statements to parse_statement.
* "Forget" to re-implement /set input_aliases.  I wonder if anyone will notice.
* Change the name of "hist_flag" to "interactive" to reflect its purpose.
* Change /load -std to use parse_statement() instead of parse_line()

Revision 1.137 / (view) - annotate - [select for diffs] , Sat Jan 7 16:46:39 2006 UTC (2 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_2_0, epic5-0_0_8
Changes since 1.136: +3 -2 lines
Diff to previous 1.136
Fix various compiler issues.

Revision 1.136 / (view) - annotate - [select for diffs] , Sat Dec 10 00:49:32 2005 UTC (2 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.135: +61 -1 lines
Diff to previous 1.135
* Add partial implementation of $xform() (see UPDATES)
* Add shell of implementation of new_send_text() which i hope to finish...
* Fix bug in $b64decode()

Revision 1.135 / (view) - annotate - [select for diffs] , Tue Nov 29 04:13:49 2005 UTC (2 years, 10 months ago) by jnelson
Branch: MAIN
Changes since 1.134: +43 -2 lines
Diff to previous 1.134
Add /on keybinding.  (*gulp*)

Revision 1.134 / (view) - annotate - [select for diffs] , Sun Oct 30 22:41:19 2005 UTC (2 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.133: +2 -2 lines
Diff to previous 1.133
* Switch users of LEVEL_CRAP to LEVEL_OTHER. yay!
* Whack some unused functions and decls, make *toa() funcs return const.
* Roll get_window_by_name() into get_window_by_desc(), it's only user.

Revision 1.133 / (view) - annotate - [select for diffs] , Sun Oct 30 01:51:20 2005 UTC (2 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.132: +6 -1 lines
Diff to previous 1.132
* Stop doing any nagging on /quote.
* Regress temporarily with handling protocol messages
* This ends the final two users of find_fixed_array_item().
* Nix find_fixed_array_item() and anything associated with it.

Revision 1.132 / (view) - annotate - [select for diffs] , Sun Oct 16 18:23:01 2005 UTC (2 years, 11 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_7
Changes since 1.131: +6 -10 lines
Diff to previous 1.131
* Fix /away -all so it doesn't error on gaps in server list (weirdo)
* Fix bogon in /xecho. doh.
* Fix /who -real so it matches both with and without the hopcount.
* Convert all uses of message_to() to message_setall(). yay!

Revision 1.131 / (view) - annotate - [select for diffs] , Thu Oct 13 00:11:58 2005 UTC (2 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.130: +64 -54 lines
Diff to previous 1.130
* Nix some func decls in windows.h that don't exist any more
* Add message_setall(), lets you save to_window on the message_from stack.
* Replace users of message_to() with message_setall().
* Replace direct users of to_window with message_setall(). yay!
* /XECHO got rewritten as part of this.  See UPDATES
* Fix various compiler warnings.

Revision 1.130 / (view) - annotate - [select for diffs] , Wed Oct 5 22:51:36 2005 UTC (3 years ago) by jnelson
Branch: MAIN
Changes since 1.129: +4 -39 lines
Diff to previous 1.129
Remove all these evil /set's that i have hated for years and years!
* Fix /xecho -x
* Remove /set alt_charset, blink_video, bold_video, color, display_ansi
* Remove /set display_pc_characters, inverse_video, underline_video. HUZZAH!

Revision 1.129 / (view) - annotate - [select for diffs] , Fri Aug 5 23:54:23 2005 UTC (3 years, 2 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_6
Changes since 1.128: +1 -2 lines
Diff to previous 1.128
Add humanize_number() and fix compiler warnings. more to follow!

Revision 1.128 / (view) - annotate - [select for diffs] , Thu Aug 4 23:15:44 2005 UTC (3 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.127: +2 -2 lines
Diff to previous 1.127
Attempt to give some trailing context for unmatched (s and {s and [s
for jm, because I can't give him the line number, even at load time...

Revision 1.127 / (view) - annotate - [select for diffs] , Sat Jun 4 15:27:05 2005 UTC (3 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.126: +2 -2 lines
Diff to previous 1.126
* Don't offer non-"TELLUSER" ctcps via /on ctcp_reply (ACTION/SED/UTC)

Revision 1.126 / (view) - annotate - [select for diffs] , Sat Jun 4 02:59:33 2005 UTC (3 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.125: +2 -2 lines
Diff to previous 1.125
* Don't do LOCAL_COPY within an infinite loop, leads to stack exahustion.
* Support new signal, SIGUSR2 which throws "system_exception".
* Teach the block commands about "system_exception" so they can be stopped.
* Whack a bunch of unused timers from vars.c. (see UPDATES)
* Sync up config.h, vars.h, and vars.c with each other.
* Add "domains" to timers, server timers, window timer, general timers
* When timers go off, latch back to their domain
* Allow timers to self-cancel if their latched item has gone away
* Add /timer -general to set a general timer.
* Make /timer -win or /timer -serv set a window or serv timer especially.

Revision 1.125 / (view) - annotate - [select for diffs] , Wed Jun 1 03:49:09 2005 UTC (3 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.124: +4 -11 lines
Diff to previous 1.124
* Put all handling of /set quit_message et al in close_server().
* Fix /quit to pass unspecified quit message as NULL to irc_exit().
* Fix irc_exit() to handle unspec. quit message as NULL to close_all_serves()
* Fix close_all_servers() to not change quit message for NULL.
* This allows /quit to use (not override) each server's quit message!
* This also allows a single %s in /set quit_message to be honored everywhere!

Revision 1.124 / (view) - annotate - [select for diffs] , Thu May 19 12:33:59 2005 UTC (3 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.123: +3 -3 lines
Diff to previous 1.123
No functional changes in this commit, just some source cleanup before
I go through and wrangle the screen recalculation code into submission.

Revision 1.123 / (view) - annotate - [select for diffs] , Mon May 9 02:43:52 2005 UTC (3 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.122: +12 -19 lines
Diff to previous 1.122
Reorganize how nickname changes are handled, refactoring coming soon!

Revision 1.122 / (view) - annotate - [select for diffs] , Mon May 2 02:55:48 2005 UTC (3 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.121: +3 -57 lines
Diff to previous 1.121
GC a bunch of stuff no longer in use.

Revision 1.121 / (view) - annotate - [select for diffs] , Fri Apr 1 03:04:52 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_5
Changes since 1.120: +2 -2 lines
Diff to previous 1.120
* Check for arc4random() in configure, don't use compat.c version if possible.
* GC "fill_it_out" code which has been deactive for a while.
* Fix translation casting error for zlonix
* Allow current_package() to return NULL, handle that as special case.
* Refactor the startup loading stuff
* Move a couple of loads out of basical and into global.

Revision 1.120 / (view) - annotate - [select for diffs] , Mon Mar 28 23:50:07 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.119: +8 -6 lines
Diff to previous 1.119
* Round one of blackjac's 'builtins' script.
* Comment out a ton of now-scripted sets.  Will GC it later.

Revision 1.119 / (view) - annotate - [select for diffs] , Mon Mar 21 02:59:16 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.118: +14 -6 lines
Diff to previous 1.118
Comment out all of the history code.  Will GC it later.

Revision 1.118 / (view) - annotate - [select for diffs] , Sat Mar 19 03:55:55 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.117: +3 -9 lines
Diff to previous 1.117
* Change "ERROR --" to "INFO --" to not alarm people as much.
* Change a few other warnings to not be so alarming.
* Change new_realloc() to not move ptr if it is big enough to hold new size.
* Fix all the status_* sub-formats to not have any hardcoded size limits.

Revision 1.117 / (view) - annotate - [select for diffs] , Fri Mar 18 02:42:31 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.116: +7 -2 lines
Diff to previous 1.116
* Make /xecho -v output to current window if it's visible.
* Permit status updates right away, instead of after first connection.
* If /input is done in hidden window, switch to the main window.
* Make arglists look a little less odd for fudd.

Revision 1.116 / (view) - annotate - [select for diffs] , Fri Mar 11 05:02:22 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_4
Changes since 1.115: +23 -78 lines
Diff to previous 1.115
* Fix compile error for #define UNAME_HACK
* Fix crash when you do $open(/file/doesnt/exist R)
* Add an /on 338 default handler.
* Fix integer underflow with log file refnums
* Rename STATUS_USER0 to STATUS_USER for backwards compat. oops!
* Whack BRACE_LOAD_HACK, it's been unsupported for a while.  PF loader rules!
* Don't allow /botmode if #define NO_BOTS
* Fix DCC connections instantly "timing out"? (Check on this)
* Whack FLOATING_POINT_SUPPORT and depend only on /set floating_point_math

Revision 1.115 / (view) - annotate - [select for diffs] , Thu Mar 3 02:10:39 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.114: +1 -2 lines
Diff to previous 1.114
* Refactor the error stuff by eliminating my_strerror() and dgets_errno.
* Error messages are now delivered on multiple levels as info is available.
* This may get annoying, but it's a lot more accurate now!
* Change inet_* functions to return int's since their retval is unused.
* Add a new internal "syserr()" function that generates formatted errors.
* Syserr's look like say()s but they act like yell()s. (can hook with /on yell)
* Keep an counter in the server stuff so we can count off as addrs are used.
* So the error message in /ON DCC_LOST is always just "ERROR" now.
* Fix various compiler warnings and stuff.
* Add $hookctl(GET HOOK <ref> STRING), return /load'able format of ON
* Fix some debugging outbound in switch_hostname(), doh!
* Roll set_socket_options() into a new Socket() function.
* Roll connections to AF_UNIX sockets into the mainline stuff.
* Roll nonblocking/connect/nonblocking into Connect().
* Add AF_UNIX support to Getnameinfo() to remove annoying errors.
* When doing recovery from EBADF in select, only check fd's we're using
* Just puke if configured for kqueue() and kqueue() fails.
* Don't puke on default 353 output if the userlist arg is missing. (for ratbox)
* Permit doing /window name to change case of window's name.

Revision 1.114 / (view) - annotate - [select for diffs] , Tue Mar 1 00:54:55 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.113: +69 -2 lines
Diff to previous 1.113
* Implement a proper built in /INVITE command.  See UPDATES
* Revert 2.8script change.
* Add "subpackage" command, which i'll document later.
* Package up 'global', and '2.8script' and 'basical' so they can be /unload'ed.
* Don't load "global" if user has their own startup script.
* Don't load "global" if the -q option is set, either.
* Thus, the "global" script acts as a default "epicrc" for those without one.
* THIS IS BACKWARDS INCOMPATABLE.  SEE UPDATES FOR IMPORTANT INFORMATION.
* Nix the "loading_global" variable, only used by hooks.
* Fix /on 005 so it shows the /on 005's and not all numeric hooks.
* If Accept() fails, tell the user straight-way so I can debug this.
* Fix /window name - so it redraws the status bar.

Revision 1.113 / (view) - annotate - [select for diffs] , Sat Feb 19 04:22:26 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.112: +2 -3 lines
Diff to previous 1.112
* Refactor $sar() and $msar() so they share as much code as possible.
* Refactor newio, support select/kqueue/poll (#define's in newio.h)
* ... Getting closer to not needing select!
* Fix SSL.
* Fix a bunch of misc compiler warnings
* Remove restrictions on /QUOTE, so there!
* Add pthread support to newio for larne. HUZZAH!
* I'm sure a zillion things are broken, so it's time to test!

Revision 1.112 / (view) - annotate - [select for diffs] , Tue Jan 25 01:39:54 2005 UTC (3 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_3
Changes since 1.111: +2 -2 lines
Diff to previous 1.111
* Fix add_to_screen() so /query nick catches /dcc chat nick. (rb adm)
* Fix /away -all which sends a bogus string to the server. (rb rain)

Revision 1.111 / (view) - annotate - [select for diffs] , Sun Jan 23 21:41:28 2005 UTC (3 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.110: +20 -10 lines
Diff to previous 1.110
* Hide ArgListT in alias.h to only those who need it, to save numbers.c
* Fix up a lot of compile warnings all over the place.
* Some changes to $hookctl() might need feedback from howl...
* Fix vhost support so we can do inbound sockets again.

Revision 1.110 / (view) - annotate - [select for diffs] , Wed Jan 12 00:12:20 2005 UTC (3 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.109: +19 -18 lines
Diff to previous 1.109
* Refactor window_check_servers() to work with server's current window only.
* Roll forward all the rest of changes from epic4 (i think)
* Add /ON NEW_NICKNAME, when epic needs a new nickname from you.
* Run 'make depend', fix compile errors, fix 'environment' script

Revision 1.109 / (view) - annotate - [select for diffs] , Sat Oct 30 13:56:16 2004 UTC (3 years, 11 months ago) by crazyed
Branch: MAIN
Changes since 1.108: +2 -31 lines
Diff to previous 1.108
* New /ISON bells and whistles as per UPDATES.
* Changes to /reconnect, /server -a, /on server_established and
  remove_from_comma_list() as per KNOWNBUGS.

Revision 1.108 / (view) - annotate - [select for diffs] , Mon Sep 13 17:29:57 2004 UTC (4 years ago) by crazyed
Branch: MAIN
Changes since 1.107: +35 -3 lines
Diff to previous 1.107
* Minor changes to dcc loss processing and the commandqueues script.
* Applied Howls shebang patch.

Revision 1.107 / (view) - annotate - [select for diffs] , Sat Sep 11 06:29:36 2004 UTC (4 years ago) by crazyed
Branch: MAIN
Changes since 1.106: +2 -1 lines
Diff to previous 1.106
Fixed /botmode bug that makes it go 100% cpu when the terminal closes.

Revision 1.106 / (view) - annotate - [select for diffs] , Wed Aug 25 22:50:59 2004 UTC (4 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.105: +41 -11 lines
Diff to previous 1.105
* Add /msg -<server>/<target> thingee, i really need to document this.
* Oh, send_text() now takes a server argument.

Revision 1.105 / (view) - annotate - [select for diffs] , Wed Aug 25 22:03:36 2004 UTC (4 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.104: +9 -3 lines
Diff to previous 1.104
* Fix memory leak with /timer
* Fix $server*() functions, when passed no arguments.

Revision 1.104 / (view) - annotate - [select for diffs] , Tue Aug 24 22:27:23 2004 UTC (4 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.103: +9 -3 lines
Diff to previous 1.103
* Nix calls to dcc_connected(<fd>, 0) which were always bogus.
* Create print_arglist() for printing alias arglists, natch.
* Fix crash from /queue -del <name> <num> for <num> = <items> + 1 (rb black)
* Show arglist when creating and listing aliases.
* Fix memory leaks of buckets when user grabs /on set.
* Add a "alternate names" bucket to server data.
* Create a whole new api for querying and creating server refnums.
* Fix crash with /dump on (/dump all)
* Add $serverctl(GET|SET <refnum> ALIAS) get and set server alternate desigs
* Add $serverctl(GET|SET <refnum> ALIASES) get and set entire list.
* Fix memory leak with /on set

Revision 1.103 / (view) - annotate - [select for diffs] , Tue Aug 17 15:09:46 2004 UTC (4 years, 1 month ago) by crazyed
Branch: MAIN
Changes since 1.102: +17 -1 lines
Diff to previous 1.102
* Numerous new and changed features as per UPDATES.
* Better handling of damaged /who x,y responses.

Revision 1.102 / (view) - annotate - [select for diffs] , Wed Aug 11 22:58:39 2004 UTC (4 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.101: +2 -120 lines
Diff to previous 1.101
* Nix /save and pray nobody notices.
* Implement pmatch_* stuff in alias.c to use the unified symbol table.
* Commands, functions, and expandos now 100% integrated.  HUZZAH!
* Reimplement $get(set|command|function)s() to use the pmatch_* stuff.
* So they now pick up changes at runtime. HUZZAH!
* Allow built in /set to be conditionally added to the "set bucket"
* Don't put user-created /set's in the bucket
* Allow user to replace one user-created /sets but not builtin sets.
* Allow mangling of ALT_CHAR -- how did this ever get missed?
* Fix $currchans() so it works the way the documentation says it does.
* Fix some const correctness issues, introduce others. bleh.

Revision 1.101 / (view) - annotate - [select for diffs] , Thu Jul 22 23:49:46 2004 UTC (4 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.100: +35 -42 lines
Diff to previous 1.100
* Make stripcrap(ALL) exclude "ALL_OFF", so I can...
* Fix bug with $stripcrap(ALL,-BOLD ^B^B^Btest). (rb BlackJac)
* Make the #define Char const char thing global to all of epic now.
* Whack /set scroll.
* Create a "/set data" type (VARIABLE) which is union of (int) and (char *).
* Expose VARIABLE and variable types in vars.h for others to use.
* Break init of /set's into two parts, one to malloc() the set data
* The second part is to init the default values once command line is done.
* Fix some warnings from --with-warns
* Fix all /set callbacks to accept a (void *)(VARIABLE *) variable
* /Set callbacks can now directly modify the /set via that variable!
* So don't allow direct setting of /set's from outside vars.c.
* Everybody must use set_var_value() which is the backend to /set.
* Whack the /IRCNAME and /REALNAME variable -- use /SET REALNAME, eh!
* Hack up /xecho -x to bide my time until i whack all those /sets it uses.
* Don't call set_input_prompt() in main() any more, it's handled elsewhere.
* Whack /set logfile callback, since nobody seems to have missed it.
* Whack the "number" (float) data in /set since i wasn't gonna use it.
* Whack the "GLOBAL/CHANGED" tracking in /set's.  Tell me if you miss this.
* Unify output of /set values as "[New|Current] value of <var> is <val>"
* Don't limit the size of /set continued_line, this will be revisited soon.
* Quick and dirty hack to work around adm's bug, will fix this later.

Revision 1.100 / (view) - annotate - [select for diffs] , Fri Jul 2 21:29:21 2004 UTC (4 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.99: +41 -3 lines
Diff to previous 1.99
* Add a "saved" list item off of the Symbol type to store /stack'ed stuff.
* Implement stack push|pop|list for all 6 symbol types.
* Nix the "line/global" tracking for symbols
* Rename "filename" tracking for symbols to "package"
* Create clone_arglist() to clone an arglist, duh.
* Change "user_variable_stub" symbol field to be an integer
* Stash the stubbed filename in "user_variable" if stub is set.

Revision 1.99 / (view) - annotate - [select for diffs] , Wed Jun 30 23:14:54 2004 UTC (4 years, 3 months ago) by crazyed
Branch: MAIN
Changes since 1.98: +9 -9 lines
Diff to previous 1.98
Fixed /list and /names so they don't do a /who.

Revision 1.98 / (view) - annotate - [select for diffs] , Mon Jun 28 22:48:15 2004 UTC (4 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.97: +132 -20 lines
Diff to previous 1.97
* Begin massive refactorization of alias.c, redefining "Alias" as "Symbol"
* Refactor parse_line() with a bunch of front end call_* functions.
* And a general parse_line() front end, "runcmds()".
* Roll builtin expandos in with the user variables
* Roll variables and commands together into one name space. HUZZAH!
* Nix the caches for the global name space, for now.
* I definitely broke /stack alias|assign here.  I'll fix it later.
* Inline expandos are now officially strings instead of a single char.
* Fix bug with $unshift() that popped up.
* Move after_expando() to ircaux.c.  I think it belongs there more.

Revision 1.97 / (view) - annotate - [select for diffs] , Sun Jun 27 16:19:37 2004 UTC (4 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.96: +2 -2 lines
Diff to previous 1.96
Fix a few bogons, reported by ce.

Revision 1.96 / (view) - annotate - [select for diffs] , Sun Jun 27 13:33:36 2004 UTC (4 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.95: +9 -19 lines
Diff to previous 1.95
Optimize some stuff.

Revision 1.95 / (view) - annotate - [select for diffs] , Sun Jun 27 03:30:17 2004 UTC (4 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.94: +22 -51 lines
Diff to previous 1.94
* Fix up parse_command() to get aliases and built in commands from aliases.
* This unifies commands and alias name spaces. HUZZAH!

Revision 1.94 / (view) - annotate - [select for diffs] , Fri Jun 25 21:01:17 2004 UTC (4 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.93: +229 -426 lines
Diff to previous 1.93
*** WARNING **** WARNING *** WARNING *** WARNING ***
This project is half finished.  I think this stuff works, but I can't be
held responsible if something breaks.  Please wait until I finish the rest
of this project before getting unhappy with me for breaking stuff.
*** WARNING **** WARNING *** WARNING *** WARNING ***

* Split alias item to hold commands and variables separately
* Nix COMMAND_COMPLETION keybinding.  Script replacement forthcoming.
* Nix "Use your nickname as alias for /me" feature.
* Nix automatic command completion (ie, /whoi no longer expands to /whois)
* Work towards not using 'command' var in builtin commands.
* This will allow me to get rid of 'server_func' in builtin command data type
* Nix the 'flags' var in builtin command data type.
* Nix the 'serv_command' var in builtin command data type.
* Create 'init_builtin_commands' to run at startup, add commands to alias
* Shimmy find_cmd_alias to ignore built in commands for now.  Not for long!
* So built in commands should be hung off of aliases now.
* Create 'builtins' script that aliases some previously builtin commands.
* Load this script from global.  Don't forget to alarm users.

Revision 1.93 / (view) - annotate - [select for diffs] , Mon Apr 12 23:19:48 2004 UTC (4 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.92: +17 -2 lines
Diff to previous 1.92
* Move some defines from comands.h to where they belong
* Add and remove func decls in header files as necessary.
* Add /wait =<fd> which returns when a nonblocking dcc connection finishes
* Make all keybinding funcs/decls use the BUILT_IN_KEYBINDING macro.
* Make the BUILT_IN_KEYBINDING macro use unsigned chars.
* Hide (struct Key) inside keys.c, and use (void *) to hold state.
* Make the input line use (unsigned char), not (char), huzzah!
* Make the "othername" ($3 in /on dcc_raw "E") the port number.
* Avoid a NULL deref with "parse_command" keybinding.

Revision 1.92 / (view) - annotate - [select for diffs] , Sat Mar 20 03:29:40 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_2
Changes since 1.91: +2 -1 lines
Diff to previous 1.91
* Make all of the level names plural, it's more forgiving that way.

Revision 1.91 / (view) - annotate - [select for diffs] , Fri Mar 19 06:05:13 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.90: +1 -9 lines
Diff to previous 1.90
GC a bunch of useless cruft and stuff.

Revision 1.90 / (view) - annotate - [select for diffs] , Fri Mar 19 04:38:18 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.89: +1 -6 lines
Diff to previous 1.89
* Split (Window)->miscflags into "notify_when_hidden" and "notified"
* Add $windowctl(... NOTIFY ...) and $windowctl(... NOTIFIED ...)
* Change $windowctl(GET <refnum> MISCFLAGS) to always return 0.
* Make /window notify and /window notified take ON|OFF|TOGGLE.
* New function, $strtol(<base> <num>), convert <num> in base <base> to base 10.
* New function, $tobase(<base> <num>), convert <num> in base 10 to base <base>.

Revision 1.89 / (view) - annotate - [select for diffs] , Wed Mar 17 16:50:30 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.88: +9 -1 lines
Diff to previous 1.88
Add /xecho -f, which suppress window notify events (%F)

Revision 1.88 / (view) - annotate - [select for diffs] , Mon Mar 15 17:00:14 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.87: +1 -3 lines
Diff to previous 1.87
* Reduce the size of level masks to 1 byte, to save cpu.
* Add turn_on_level() and turn_off_level(), for reasons that escape me.
* Nix the /help command, make howl's scripted replacement the default.
* Add $cofilter() entry so you can use it (it was already written)

Revision 1.87 / (view) - annotate - [select for diffs] , Mon Mar 15 03:24:51 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.86: +10 -10 lines
Diff to previous 1.86
Well, at least it compiles again, but I think i still need at least one
or two sweeps of the code to make sure I got everything proper.

Revision 1.86 / (view) - annotate - [select for diffs] , Fri Mar 12 22:22:00 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.85: +18 -18 lines
Diff to previous 1.85
*********** DONT RUN THIS -- IT'S WORK IN PROGRESS -- DONT RUN THIS ***********
* Import epic4 commits 674 through 692, inclusive.
* Import epic4 commits 693 through 710, inclusive (epic4-2.0 final)
* Change _X and _Y macros to LEVEL and LEVELMASK for linux (sigh)
* Add a searchbuf() 8 bit clean byte-finder for future use.
* Convert flood checking, ignore checking, lastlog, logfiles to int masks.
* Convert message_from to int masks.
*********** DONT RUN THIS -- IT'S WORK IN PROGRESS -- DONT RUN THIS ***********

Revision 1.85 / (view) - annotate - [select for diffs] , Thu Jan 15 05:54:55 2004 UTC (4 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.84: +17 -11 lines
Diff to previous 1.84
* Make /reconnect work on servers that are not already open.
* Don't just cavalierly change window's servers.
* Prefer close_server(i, NULL); over change_window_server(i, NOSERV);
* Allow windows to stay connected to closed servers.
* Nix window's "old server", now they're unnecessary.  HUZZAH!
* Mop up channel stuff that coped with window-old-server.
* Break backwards compatability and make /window +<server> reconnect to ser.
* Break backwards compatability and make /window -<server> disconnect from serv
* Hide a bunch more debugging output behind /xdebug server_connect
* Refactor change_window_server().
* Make /window discon the same as /window noserv, total disconnection.

Revision 1.84 / (view) - annotate - [select for diffs] , Wed Jan 7 16:05:02 2004 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.83: +1 -2 lines
Diff to previous 1.83
* Assimilate notice.c into parse.c.  *poof*
* Fix some compiler issues and so forth
* Nix the NOTE level.
* Move load_ircrc() to irc.c, nix "startup_file" global var.

Revision 1.83 / (view) - annotate - [select for diffs] , Mon Jan 5 16:24:40 2004 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82
* Allow client_connect() to be nonblocking
* Allow Getaddrinfo() and Freeaddrinfo() to be called extern.
* Track writable sockets in 'global_max_fd' too.
* Keep a list of AI's for server addresses in the server code
* When server connection lost before registration, use the next AI
* Implement set_server_status(), which controls where server is in lifetime
* Nix reconnect(), which is replaced by close_server + set_server_status().
* Nix server_reconnects_to(), we no longer reconnect to servers.
* Make /xdebug server_connect the default for this commit at least
* Call window_check_servers() every time through io(), because...
* Make window_check_servers() look for disconnected servers and restart them.
* Add add_mode_to_str() which adds a channel or usermode to a string (sorted)
* Make usermodes use add_mode_to_str()
* Make channel modes use add_mode_to_str()
* Now modes are not stored in bitmasks, not hard-coded at compile time. HUZZAH!
* Nix "inactive" field in channels, channels are thrown away at disconnect
* Don't allow channels to move between servers, natch.
* Nix all the code to handle disconnected channels and such.
* Use change_window_server() to move windows to new servers, because...
* Make window_check_servers() auto-close windowless servers.
* Make change_window_server(<server>, NOSERV) cause a disconnect from <server>
* Don't honor /set auto_reconnect, we don't ever reconnect.
* Fix printf() error in /on kick default output
* Add new server state, SERVER_RECONNECT which means "i can be connected"
* So now SERVER_CLOSED means "don't reconnect me"
* Allow /server, /window server, and /reconnect to change CLOSED -> RECONNECT
* Make server connections nonblocking.
* Server connections are now nonrecursive, nonblocking, multi-protocol. HUZZAH!
* GC a bunch of server code dealing with reconnection we don't use now.
* Don't call window_check_servers() other than io() for sanity reasons.
* Make /window server just change server, let w_c_s() bootstrap connection
* Remove many window->channel->server sanity checks.

Revision 1.82 / (view) - annotate - [select for diffs] , Wed Dec 17 09:25:30 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.81: +29 -27 lines
Diff to previous 1.81
Make 'empty_string' (const char []).  Now we're cooking with gas!

Revision 1.81 / (view) - annotate - [select for diffs] , Tue Dec 16 23:25:45 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_1
Changes since 1.80: +10 -12 lines
Diff to previous 1.80
EPIC5-0.0.1!  Huzzah!

Revision 1.80 / (view) - annotate - [select for diffs] , Mon Dec 15 05:41:02 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.79: +27 -32 lines
Diff to previous 1.79
Make message_from() work off of a stack; use panics to guard against
unmatched message_from()s, and other wackiness.

Revision 1.79 / (view) - annotate - [select for diffs] , Sun Dec 14 20:04:09 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.78: +4 -8 lines
Diff to previous 1.78
* Nix auto-append-of-$* feature (args_flag to expand_alias/parse_inline)
* Fix provided scripts to add $* when necessary.
* Fix up Makefile, configure, et al, to use epic5/ directories.

Revision 1.78 / (view) - annotate - [select for diffs] , Tue Dec 9 05:12:37 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_2_5
Changes since 1.77: +4 -3 lines
Diff to previous 1.77
Fix some more problems in the pf loader.

Revision 1.77 / (view) - annotate - [select for diffs] , Tue Dec 9 04:37:52 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.76: +11 -1 lines
Diff to previous 1.76
* Add /ON WINDOW_BEFOREKILL
* Another iteration of the 'notify' script, hooks the system's /ONs now! =)
* Put a space in place of a newline in the PF loader.
* Always ignore spaces after semicolons in parse_line (the {} parser).
* Some compiler warning fixes from rain.

Revision 1.76 / (view) - annotate - [select for diffs] , Mon Dec 1 03:21:19 2003 UTC (4 years, 10 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_2_4, epic4-1_2_3, epic4-1_2_2, epic4-1_2_1, epic4-1_2_0
Changes since 1.75: +9 -10 lines
Diff to previous 1.75
(*gulp*) Some changes for fudd.
* Add /ON WINDOW_COMMAND, hooked after every /window command, $* is refnum.
* Add concept of "fixed" or "frozen" windows when you SKIP ON FIXED ON
* Fix /window kill to not kill the last "non-fixed" window
* Fix /window hide to not hide the last "non-fixed" window
* Allow /window kill to kill a "fixed" window, but not the last window.
* (*gulp*) I hope all of the above works!
* Fix $windowctl(REFNUM ...) it was out of order with REFNUMS
* Make /xecho -l override the "who_from" target and always send to the level

Revision 1.75 / (view) - annotate - [select for diffs] , Fri Nov 7 23:43:47 2003 UTC (4 years, 10 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_17, epic4-1_1_16
Changes since 1.74: +15 -5 lines
Diff to previous 1.74
Implement infinite recursion detector and thwarter.  It requires a #define
in config.h, the future of which I have not decided yet.

Revision 1.74 / (view) - annotate - [select for diffs] , Fri Oct 31 08:19:24 2003 UTC (4 years, 11 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_15, epic4-1_1_14
Changes since 1.73: +9 -2 lines
Diff to previous 1.73
* Numerous updates/changes/fixes to DCC, functions, scripts, /EXEC, the
  new math parser, as per UPDATES and KNOWNBUGS.

One potential incompatibility is in the change to $open(). (as per UPDATES)

Revision 1.73 / (view) - annotate - [select for diffs] , Fri Oct 10 05:22:38 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_13
Changes since 1.72: +2 -2 lines
Diff to previous 1.72
Implement "privleged yells" which allow syou to do /set debug 7 at the
same time as /set output_rewrite.  Yea~!

Revision 1.72 / (view) - annotate - [select for diffs] , Fri Oct 10 05:09:01 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.71: +4 -1 lines
Diff to previous 1.71
* Add $servernick(<global>) to return the client's global nickname
* Update tabkey.jm to latest version
* Add new ircII-compatable /window hold_mode thingee.
* Add /set hold_slider, /window hold_slider
* Add 'hold_mode' script, implements ircII-like /set hold_mode[_interval]
* /XEVAL -- ends eval option processing, like how /xecho does it.

Revision 1.71 / (view) - annotate - [select for diffs] , Fri Sep 12 00:42:47 2003 UTC (5 years ago) by jnelson
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70
Commit 581
* Fix /dcc chat nick -p 4444
* Return empty string if you do $aliasctl(pmatch <bogus> <whatever>)
* Update some copyright notices.

Revision 1.70 / (view) - annotate - [select for diffs] , Sun Aug 31 00:33:48 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.69: +5 -2 lines
Diff to previous 1.69
* Fix buffer overrun crash with CTCP UTC.

Revision 1.69 / (view) - annotate - [select for diffs] , Fri Jul 18 00:36:34 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.68: +19 -2 lines
Diff to previous 1.68
* Fix time functions to take (const Timeval) if they don't change the arg.
* Create a special handler for /squit to avoid sending QUIT * to server.
* Protect some IPv6 stuff i added recently to dcc with #ifdef INET6.  Ooops.
* Hack up $repeat(<num><space><space>) so it works again. ugh.
* Hack up /set <variable><space><space> so it works again.  ugh.
* Dont allow /timer -repeat -1 0 because that busy-loops.
* Add shell of $windowctl() which will be filled in going forward.

Revision 1.68 / (view) - annotate - [select for diffs] , Mon Jul 14 17:22:03 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.67: +18 -3 lines
Diff to previous 1.67
Fix up /load to honor the /return command so you can abort early from
within a /load'ed file.  See 'pf-loader' for details on why you would
want to do this.

Revision 1.67 / (view) - annotate - [select for diffs] , Thu Jul 10 22:56:01 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.66: +2 -1 lines
Diff to previous 1.66
Commit 551 -- second to last commit for this project -- the big one!
* Roll in the new universal_next_arg_count() and attendant macros.
* Comment out some deprecated function decls in ircaux.h
* Do another round of make depends.
* Modify alias arglist code to use the new universal_next_arg_count() stuff
* Convert dequote() to dequoter().
* Convert new_new_next_arg() into new_new_next_arg_count().
* Comment out deprecated functions in ircaux.c -- will be deleted later.

Revision 1.66 / (view) - annotate - [select for diffs] , Thu Jul 10 12:08:56 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65
Overhaul of malloced string handling functions:
* Convert m_[s]c3cat[_s]() to malloc_strcat_wordlist_c()
* Nix m_e3cat(), m_s3cat(), m_s3cat_s(), m_3cat()
* Nix m_ec3cat(), m_sc3cat(), m_sc3cat_s(), m_c3cat().
* Convert m_dupchar() to malloc_dupchar().
* Convert m_strndup() to malloc_strndup().
* Make malloc_strcpy/malloc_strcat/malloc_strcat2/malloc_strcat_wordlist macros
* Convert m_2dup() to malloc_strdup2().
* Convert m_3cat() to malloc_strcat2[_c]().
* Convert m_3dup() to malloc_strdup3().
* Convert m_ec3cat() to malloc_strcat2_c()
* Use strlcat_c() in $repeat() instead of strlcpy(). whee!
* Sanity check first arg to $regcomp(), to avoid crashes.
* Don't pass NULL to bsearch(), even if 'nmem' is 0 [$remws()]
* Nix the original malloc_strcpy (supplanted by malloc_strcpy_c)
* Comment out all the deprecated functions

Revision 1.65 / (view) - annotate - [select for diffs] , Wed Jul 9 20:10:24 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.64: +5 -5 lines
Diff to previous 1.64
Convert m_strdup() to malloc_strdup().

Revision 1.64 / (view) - annotate - [select for diffs] , Sat May 17 17:30:21 2003 UTC (5 years, 4 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_12
Changes since 1.63: +2 -2 lines
Diff to previous 1.63
* Misc bugfixes as per KNOWNBUGS.
* This patch involves renaming crypt.h to sedcrypt.h.

Revision 1.63 / (view) - annotate - [select for diffs] , Fri May 9 03:29:52 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.62: +46 -39 lines
Diff to previous 1.62
* Rename 'dcc()' to 'dcc_cmd()' so we can use dcc as variable
* Garbage collect unused 'irc_path' global variable.
* Add --with-warns to configure to do FreeBSD "WARNS" like compiler checks
* Many hundreds of changes to improve the "quality of code" in epic, including:
* - Treat all literal strings as (const char *) and fix const correctness.
* - Mopping up all remaining const-correctness issues
* - Do not "launder" a (const char *) to a (char *) in string searches, (ala
    strchr) but rather return a ssize_t offset value.
* - Particular, MatchingBracket() returns (ssize_t) and not (char *).
* - Eliminate all "shadow" variable names by changing them to something else.
* - Eliminate most function decls that do not include a prototype list.
* - Add prototypes for all extern functions that are missing them.
* - Ensure most function pointers include a prototype list.
* - In term.c, most of those (char *)'s are really (const char *)'s.
* - Explicitly specify 'static' functions as 'static'
* - Ensure every function is either 'static' or has a prototype.
* - Eliminate (unsigned) < (signed) type comparisons.
* Hopefully you