CVS log for epic4/source/lastlog.c

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

Request diff between arbitrary revisions


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

Revision 1.29 / (view) - annotate - [select for diffs] , Mon Nov 24 23:32:24 2003 UTC (4 years, 10 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-2_8, epic4-2_6, epic4-2_4, epic4-2_2, epic4-2_1_3, epic4-2_1_2, epic4-2_1_1, epic4-2_10, epic4-2_0, epic4-1_2_9, epic4-1_2_8, epic4-1_2_7, epic4-1_2_6, epic4-1_2_5, epic4-1_2_4, epic4-1_2_3, epic4-1_2_2, epic4-1_2_1, epic4-1_2_0, HEAD
Changes since 1.28: +11 -9 lines
Diff to previous 1.28
* Fix /lastlog <number> for kanan.

Revision 1.28 / (view) - annotate - [select for diffs] , Fri Nov 7 03:51:10 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_17, epic4-1_1_16, epic4-1_1_15
Changes since 1.27: +4 -2 lines
Diff to previous 1.27
See KNOWNBUGS

Revision 1.27 / (view) - annotate - [select for diffs] , Tue Oct 28 05:53:57 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_14
Changes since 1.26: +2 -2 lines
Diff to previous 1.26
* Add /set wserv_type, either "xterm" or "screen".
* Add malloc_strcat_word_c, add a single word to word list, with "" support
* Convert a bunch of stuff to use malloc_strcat_word_c to honor ""s right.
* GC a bunch of unused code.

Revision 1.26 / (view) - annotate - [select for diffs] , Tue Sep 23 20:49:47 2003 UTC (5 years ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_13
Changes since 1.25: +3 -3 lines
Diff to previous 1.25
* Revert all uses of LOG_CURRENT to LOG_CRAP
* Change all uses of message_to(0) to message_to(-1)
* Fix show_help() to not change to_window, it doesn't need to care about that.
* Fix help_put_it() to not change message_from, doesn't need to care about it.
* Fix /lastlog to use message_to(0) to send all output to current window.
* Don't make output of /log go to current window -- no point to that.
* Teach add_to_screen() to honor from_server's current window for LOG_CURRENT
* And for /set current_window_level as well
* Fix message_from() not to save/restore lastlog level, doesn't need to care.
* All of this pretty much nukes LOG_CURRENT except for /window, HUZZAH!

Revision 1.25 / (view) - annotate - [select for diffs] , Wed Jul 23 03:43:55 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24
Fix some bugs that can be attributed solely to a total lack of testing
on my part.  I'm rather embarrased about this.

Revision 1.24 / (view) - annotate - [select for diffs] , Tue Jul 22 20:12:54 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.23: +17 -8 lines
Diff to previous 1.23
Teach all the /set callbacks to take a (const void *).
This fixes a bad-c problem with /set!

Revision 1.23 / (view) - annotate - [select for diffs] , Sat Jul 19 20:47:55 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.22: +28 -6 lines
Diff to previous 1.22
* Rework the bug report form to point people to the bugs website
* Add /lastlog -target.

Revision 1.22 / (view) - annotate - [select for diffs] , Thu Jul 10 12:08:57 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21
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.21 / (view) - annotate - [select for diffs] , Wed Jul 9 20:10:25 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20
Convert m_strdup() to malloc_strdup().

Revision 1.20 / (view) - annotate - [select for diffs] , Wed Jul 9 04:45:22 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19
Cut over m_sprintf() to malloc_sprintf().

Revision 1.19 / (view) - annotate - [select for diffs] , Fri May 9 03:29:52 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_12
Changes since 1.18: +6 -10 lines
Diff to previous 1.18
* 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 should not notice any changes!

Revision 1.18 / (view) - annotate - [select for diffs] , Thu Apr 24 20:49:25 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.17: +15 -11 lines
Diff to previous 1.17
Nominally remove all uses of "unsafe" functions: (Commit 506)
* Convert all uses of strcpy() to strlcpy()
* Convert all uses of strcat() to strlcat()
* Convert all uses of strmcpy() to strlcpy()
* Convert all uses of strmcat() to strlcat()
* Convert all uses of sprintf() to snprintf()
* As much as possible, use 'sizeof var' in snprintf/strlcpy/strlcat.
* Qualify the size of some global vars so we can sizeof() them.
* Nuke strmcpy(), strmcat(), strmcat_ue(), strmccat(),
* Change strmopencat() to strlopencat().
* Change strmpcat() to strlpcat().
* Fix switch_hostname so it doesn't return a (const) string.
* Fix TimerTimeout so it doesn't return a (const) Timeval.
* Change things like (ret) to do ret while (0); for when "ret" is "{}".
* Fix initialization for load_level
* Stop passing in static strings into io(), so we can modify them.
* Make messages passed to io() more informative to the user.
* Fix CTCP FINGER handler not to assume (struct pw) strings can be overwritten.
* Use (socklen_t) and not an (int) for socket sizes.
* Don't return a value in a void function...
* Don't use return value of process_dcc_chat_ctcps() for assignment.
* Don't put semicolons after function bodies
* Fix $getopt() to save 'input_size' so we can use it with strl*().
* Convert all uses of stpcpy() to strlcat() and strlopencat().
* Nix checks for stpcpy() in configure -- regen configure.

Revision 1.13.2.2 / (view) - annotate - [select for diffs] , Mon Mar 24 17:53:01 2003 UTC (5 years, 6 months ago) by wd
Branch: wd-devel
Changes since 1.13.2.1: +0 -0 lines
Diff to previous 1.13.2.1 to branch point 1.13 to next main 1.14
Another merge.

Revision 1.13.2.1 / (view) - annotate - [select for diffs] , Thu Feb 27 15:29:56 2003 UTC (5 years, 7 months ago) by wd
Branch: wd-devel
Changes since 1.13: +57 -22 lines
Diff to previous 1.13
Yikes.  Merged to become consistent with HEAD.  Sorry for all the commits,
I'll be quiet again soon. :)
-wd

Revision 1.17 / (view) - annotate - [select for diffs] , Fri Jan 31 23:50:18 2003 UTC (5 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_11
Changes since 1.16: +3 -3 lines
Diff to previous 1.16
Commit 443
* Uniformly use 32 bit file sizes in dcc.  That's the way it has to be.
* Split process_incoming_chat into modular functions.  It's an experiment.
* Remove the old, #if 0'd dcc_getfile_resume.
* Remove the second, redundant warning from /window refnum(_or_swap).
* Make the ArgList portion of server messages const.  All const!  Huzzah!
* Roll /names, /list, and /mode numeric handlers into numbers.c
* Roll "funny" global variables into server-specific variables
* Nuke funny.c and funny.h -- huzzah!
* /on window_kill provides two args now, $0 is refnum, $1 is name/refnum.
* Rename "numeric_banner" to "banner"
* Rename "parse_notice" to "p_notice"
* In /xecho, rename 'banner' local var to 'want_banner'.
* Revamp p_notice to look like and act like p_privmsg as much as possible.
* Finish the rest of the larnifications.  Done with phase 1.  Huzzah!

Revision 1.16 / (view) - annotate - [select for diffs] , Sat Jan 11 04:26:52 2003 UTC (5 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15
Commit #427
* Add -l<tcl> to the front of $LIBS so -lm can come after it
* Look for SSL stuff in default location before hunting for it in /usr/local.
* Reset $withval after check for perl so --without-perl doesn't --without-tcl
* Make first arg of cvtchar() a (const char *) to silence warning.
* Move 'this_sucks' label to a place where it is legal.
* Make check_val() cope with NaNs and INFs more graciously...
* Fix null deref with /lastlog -c
* Update the input line in set_update(), not the caller
* Do update the input line when redrawing status
* Change make_status() to return a success/failure value.
* Don't clear the "status line wants redraw" flag if redrawing status fails.
* Nuke the now unecessary "in_window_command" global variable.
* Fix bug where <scrollback> + <scrollforward> left you in scrollback mode.
* Force init of Window->lines_held = 0 even though that shouldnt be needed.

Revision 1.15 / (view) - annotate - [select for diffs] , Wed Dec 11 19:20:23 2002 UTC (5 years, 9 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_9, epic4-1_1_8, epic4-1_1_10
Changes since 1.14: +4 -1 lines
Diff to previous 1.14
* Added functions $asciiq() $chrq() $exec() $timerctl() $tcl() $winline()
  and $floodinfo().
* Altered the two argument version of $read() to ctcp quote the strings it
  returns.
* Added sets FLOOD_RATE_PER and FLOOD_MASKUSER.
* Altered the "accept" mode of the dcc_raw and dcc_connect hooks to refer
  to the local port instead of the remote port.
* Added a "-closein %proc" switch to /exec.
* Altered the arg list mode of /alias to use extractw instead of next_arg.
* Added the documented "words" argument to the above.
* Tuned autoget, mudirc, tabkey.ce and commandqueues.
* Altered /pretend to not chop the string.
* Set about rewriting the flood detection and then decided that it's better
  off being a script.
* Moved the function macros to their own file (functions.h) and replaced
  all the copies that are strewn throughout the source with an #include.
  The exception is array.c which broke when I tried it.
* Moved the ctcp enquoting/dequoting functions to ircaux.c.
* Added some command/function ordering checks to funcs/regress, and a check
  for all the functions that are undocumented.
* Rewrote function chanmodetype() so that it doesn't have all those flakey
  buffering things.  Hopefully it's readable now.  The significant change
  is that if a mode character appears twice in CHANMODES, the first one is
  returned instead of the last.
* Added EPIC::call() in the perl routines and an equivalent under tcl.
  this is designed to call a $function() directly, but it isn't really that
  fast, so I might rip them out again.
* The /wait internals used to store a few other settings, which were taken
  out, so I put them back.
* Fixed a few problems with normalize_filename() around the place.
* Fixed a bug with /timer in which it would never show the timers after a
  callback.

Revision 1.14 / (view) - annotate - [select for diffs] , Wed Dec 4 03:28:05 2002 UTC (5 years, 10 months ago) by jnelson
Branch: MAIN
Changes since 1.13: +50 -18 lines
Diff to previous 1.13
Make /lastlog -context work more like grep -<number> Requested by starfox.

Revision 1.13 / (view) - annotate - [select for diffs] , Wed Jul 17 21:52:52 2002 UTC (6 years, 2 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_7, epic4-1_1_6
Branch point for: wd-devel
Changes since 1.12: +29 -8 lines
Diff to previous 1.12
Update copyright notices and copyright dates.

Revision 1.12 / (view) - annotate - [select for diffs] , Thu Feb 14 01:59:55 2002 UTC (6 years, 7 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_5, epic4-1_1_4, epic4-1_1_3
Changes since 1.11: +4 -3 lines
Diff to previous 1.11
Fix "make installscript"
Fix /lastlog so that the header/footer use "numeric_banner" instead of
	fetching /SET BANNER so that /SET BANNER_EXPAND is honored.
This requires that 'lastlog.c' include 'numbers.h'
This requires a 'make depend'
Minor nitpick in output.c

Revision 1.11 / (view) - annotate - [select for diffs] , Thu Jan 24 10:45:25 2002 UTC (6 years, 8 months ago) by crazyed
Branch: MAIN
Changes since 1.10: +24 -7 lines
Diff to previous 1.10
* Enhanced flood checking to keep records based on userhost rather than
  nick.  Not designed to catch clones but to make it harder to avoid.
* Flood checking keeps its time in microseconds now, which _may_ make it
  a little hyperactive on occasions.
* Small re-arrangement to find_array_item() to make it slightly faster.
* Terminology fix in /alias /s.
* Added $regmatches() which works exactly like $regexec, but returns pairs
  of numbers which can be applied to $mid() to extract the matched strings
  and substrings from the original string.  It also takes a new second
  argument indicating the maximum number of subexpressions to return.
* New -file option to /lastlog.  If given, all output will be written to
  the file rather than the screen.  file_put_it() may be questionable.
* $channel() will return "h" in the op field if the user is a half-op.

Revision 1.10 / (view) - annotate - [select for diffs] , Thu Nov 15 22:27:54 2001 UTC (6 years, 10 months ago) by jnelson
Branch: MAIN
Changes since 1.9: +14 -21 lines
Diff to previous 1.9
I was passing in the *normalized* string to the lastlog stuff, which
was definitely a bad idea.  Now i pass the raw string to window_disp
and then pass the raw string onto lastlog and log, and so on, so that
they don't get broken.
I *will* be changing this again, but this is a stopgap fix for now.

Revision 1.9 / (view) - annotate - [select for diffs] , Mon Oct 29 16:22:32 2001 UTC (6 years, 11 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_1
Changes since 1.8: +4 -3 lines
Diff to previous 1.8
/lastlog wouldn't accept levels correctly.

Revision 1.8 / (view) - annotate - [select for diffs] , Wed Oct 24 20:19:46 2001 UTC (6 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.7: +10 -9 lines
Diff to previous 1.7
Start documenting some of the stuff in 1.1.1.
Change comments for /lastlog to reflect recent changes.
Once I finish the "KNOWNBUGS" file, unless there are any issues
i am made aware of, I will release epic4-1.1.1 as an alpha release.

Revision 1.7 / (view) - annotate - [select for diffs] , Fri Oct 12 21:33:53 2001 UTC (6 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.6: +30 -7 lines
Diff to previous 1.6
I made two goofups here:
/LASTLOG <num1> <num2> -- I switched the meanings of <num1> and <num2>.
<num1> means the number of entries to look at, and <num2> is the number
of entries to skip.  I had that reversed.
The other goofup is that i had <num1> counting from the oldest entry,
but it's supposed to count from the newest entry.  That makes me wonder
just what good <num2> is for.  Probably because I goofed that up too.
Oh well.  That's a battle for another day.
Found by Xavier.

Revision 1.6 / (view) - annotate - [select for diffs] , Mon Oct 8 03:35:47 2001 UTC (7 years ago) by jnelson
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5
Fix some compile warnings -- things are getting in shape!

Revision 1.5 / (view) - annotate - [select for diffs] , Tue Oct 2 16:53:34 2001 UTC (7 years ago) by crazyed
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4
* Miscelaneous 3cat updates.
* History expansion copies the history buffer verbatim now.
  * Bugfix:  /!0 would not retrieve the first command entered.
  * Bugfix:  Negative numbers not found would be display the
    incorrect number in the error message.  eg:  /!-4444
* Alterations to remove_trailing_spaces interface.
* $igetrmatches() was defined, but inaccessible.

Revision 1.4 / (view) - annotate - [select for diffs] , Mon Aug 27 23:49:22 2001 UTC (7 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3
There was a bug in my lastlog loop that didn't show the most recent item
put in the lastlog.  Fix this.

Revision 1.3 / (view) - annotate - [select for diffs] , Mon Aug 27 23:44:28 2001 UTC (7 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.2: +117 -1 lines
Diff to previous 1.2
Fixes to /lastlog -context.

Revision 1.2 / (view) - annotate - [select for diffs] , Fri Jun 22 21:34:35 2001 UTC (7 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.1: +347 -172 lines
Diff to previous 1.1
Two things:
* Remove /set notify_handler which didn't do anything.
* Rewrite /lastlog so i understand how it works.
  Big new feature, -regex, to support regex searching on lastlog!
* Commit #75.

Revision 1.1.1.1 / (view) - annotate - [select for diffs] (vendor branch) , Tue Dec 5 00:11:57 2000 UTC (7 years, 10 months ago) by jnelson
Branch: epicsol
CVS Tags: start, epic4_0_9_15, epic4-1_0_1, epic4-1_0, epic4-0_9_17, epic4-0_9_16, epic4-0_9_15, epic4-0_9_14, epic4-0_10_0, epic-test-tag2, epic-test-tag
Changes since 1.1: +0 -0 lines
Diff to previous 1.1
Initial import into CVS

Revision 1.1 / (view) - annotate - [select for diffs] , Tue Dec 5 00:11:57 2000 UTC (7 years, 10 months ago) by jnelson
Branch: MAIN
Initial revision

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Diffs between and
Type of Diff should be a

View only Branch:
Sort log by:

CVS Admin
Powered by
ViewCVS 0.9.2