CVS log for epic4/source/hook.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.27 / (view) - annotate - [select for diffs] , Sat Feb 16 23:59:11 2008 UTC (5 months, 2 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic4-2_10, HEAD
Changes since 1.26: +2 -1 lines
Diff to previous 1.26
* Add /on signal (pegasus)
* Fix /set indent if /set continued_line contains ^C stuff (pegasus)

Revision 1.26 / (view) - annotate - [select for diffs] , Wed Dec 1 23:47:51 2004 UTC (3 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-2_8, epic4-2_6, epic4-2_4, epic4-2_2, epic4-2_1_3
Changes since 1.25: +2 -2 lines
Diff to previous 1.25
Last material change to epic4! (hopefully -- cross fingers)
* Fix wording of default messages for 347 and 349 numerics.
* Fix column alignment for /timer list.
* Fix add_to_window() to stop runaway recursion through /set output_rewrite.
* Fix bug in expand_alias() -- all output must be privileged_yell()!
* Change /on send_to_server so it can't be hooked recursively.

Revision 1.25 / (view) - annotate - [select for diffs] , Tue Dec 9 04:37:52 2003 UTC (4 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-2_1_2, epic4-2_1_1, epic4-2_0, epic4-1_2_9, epic4-1_2_8, epic4-1_2_7, epic4-1_2_6, epic4-1_2_5
Changes since 1.24: +2 -1 lines
Diff to previous 1.24
* 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.24 / (view) - annotate - [select for diffs] , Mon Dec 1 03:21:19 2003 UTC (4 years, 8 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.23: +2 -1 lines
Diff to previous 1.23
(*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.23 / (view) - annotate - [select for diffs] , Fri Nov 7 23:43:47 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_17, epic4-1_1_16
Changes since 1.22: +5 -3 lines
Diff to previous 1.22
Implement infinite recursion detector and thwarter.  It requires a #define
in config.h, the future of which I have not decided yet.

Revision 1.22 / (view) - annotate - [select for diffs] , Wed Oct 29 05:26:05 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_15, epic4-1_1_14
Changes since 1.21: +2 -1 lines
Diff to previous 1.21
Add /on dcc_activity, a hook for scripters to create a %D-workalike.

Revision 1.21 / (view) - annotate - [select for diffs] , Thu Jul 10 22:56:01 2003 UTC (5 years ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_13
Changes since 1.20: +3 -3 lines
Diff to previous 1.20
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.20 / (view) - annotate - [select for diffs] , Thu Jul 10 09:30:45 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.19: +10 -5 lines
Diff to previous 1.19
Commit 548
* Nix channel_window, duplicate of get_winref_by_channame()
* Make arglist processor panic if it sees an argtype that doesn't exist.
* Fix bug with * operator in exprs like (a ? b : *c) in new expression parser.
* Fix theoretical crash with deleting hooks from /on window. Bleh.
* General cleanups in if.c.
* Fix /timer -list acting all wacky.
* Fix compilation warnings, you know the deal...

Revision 1.19 / (view) - annotate - [select for diffs] , Thu Jul 10 08:50:30 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18
* Convert parse_line_with_return() to call_lambda_function().

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

Revision 1.17 / (view) - annotate - [select for diffs] , Fri May 9 03:29:52 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_12
Changes since 1.16: +13 -13 lines
Diff to previous 1.16
* 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.16 / (view) - annotate - [select for diffs] , Thu Apr 24 20:49:25 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.15: +11 -10 lines
Diff to previous 1.15
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.4 / (view) - annotate - [select for diffs] , Wed Mar 26 12:38:50 2003 UTC (5 years, 4 months ago) by wd
Branch: wd-devel
Changes since 1.13.2.3: +2 -2 lines
Diff to previous 1.13.2.3 to branch point 1.13 to next main 1.14
A lot more cleanup.  Namespace scope changing within aliases now works.
-wd

Revision 1.13.2.3 / (view) - annotate - [select for diffs] , Wed Mar 26 09:20:46 2003 UTC (5 years, 4 months ago) by wd
Branch: wd-devel
Changes since 1.13.2.2: +3 -3 lines
Diff to previous 1.13.2.2 to branch point 1.13
Okay.  User input is now handled specially, and parse_command() will not
accept incomplete command names anymore.
-wd

Revision 1.13.2.2 / (view) - annotate - [select for diffs] , Mon Mar 24 17:53:01 2003 UTC (5 years, 4 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
Another merge.

Revision 1.13.2.1 / (view) - annotate - [select for diffs] , Thu Feb 27 15:29:56 2003 UTC (5 years, 5 months ago) by wd
Branch: wd-devel
Changes since 1.13: +3 -3 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.15 / (view) - annotate - [select for diffs] , Fri Jan 31 23:50:18 2003 UTC (5 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_11
Changes since 1.14: +2 -2 lines
Diff to previous 1.14
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.14 / (view) - annotate - [select for diffs] , Sun Jan 26 03:25:38 2003 UTC (5 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13
Commit 436
This commit is deceptive because it is huge in scope but can be explained
pretty simply.

* Const correctness improvements.
* Invert the meaning of 'new_check_flooding' to return TRUE if flooding.
* Revamp funny.c, /list, /names, /mode reply handling.
* Remove unused joined_nick, public_nick
* Change got_initial_version_28() arguments singly and not an array
* Change signature of protocol handling to take "command" as an argument
* The above change cascades to a lot of other changes.
* Allow the /msg'ing of @W<refnum> to msg a window's refnum.
* First round of larnification (Protection against unexpected server data)
* This involved substantial rewrites of parse.c, and numbers.c
* Now "fake" stuff goes through /on odd_server_stuff.
* Fix /on invite so it takes 3 arguments, not 2.

Revision 1.13 / (view) - annotate - [select for diffs] , Wed Nov 20 03:54:08 2002 UTC (5 years, 8 months ago) by wd
Branch: MAIN
CVS Tags: epic4-1_1_9, epic4-1_1_8, epic4-1_1_10
Branch point for: wd-devel
Changes since 1.12: +74 -4 lines
Diff to previous 1.12
* Add $getserial() function.
* Add +|- special serial handlers to /on
-wd

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

Revision 1.11 / (view) - annotate - [select for diffs] , Thu May 23 02:35:17 2002 UTC (6 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10
No functional changes, just removal of unecessary whitespace at the end
of lines.  From adm.

Revision 1.10 / (view) - annotate - [select for diffs] , Tue Apr 2 21:02:13 2002 UTC (6 years, 4 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_5, epic4-1_1_4
Changes since 1.9: +1 -0 lines
Diff to previous 1.9
* Rolled the $getsets() and $getcommands() code into macros and added
  $getfunctions().
* Added a server_established hook.  This is called before anything is sent
  to the server, and it is intended that for ssl connections, stuff can be
  quoted and hooked in plain text until the hook returns, although, it is
  difficult to verify that this will actually work.
* Made it so that when all variables are erased, the low level array that
  contains the variables is erased.  This is intended to make it easier to
  profile the memory use.
* Copyright notice added to perl.c.
* Minor stuff for tabkey.ce.

Revision 1.9 / (view) - annotate - [select for diffs] , Fri Jan 25 21:57:10 2002 UTC (6 years, 6 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_3
Changes since 1.8: +1 -0 lines
Diff to previous 1.8
Applied the SSL patch from ay-ar.

Details are in README.SSL.  This works well at this point, but there may
be teething problems.

Revision 1.8 / (view) - annotate - [select for diffs] , Sun Jan 6 19:42:30 2002 UTC (6 years, 7 months ago) by crazyed
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7
Fixed a bunch of memory leaks:

* In /alias with no args, one leak for each line printed.
* If an /on would clober another /on, there would be a leak.
* In "/timer -ref xxx", if xxx existed and therefore blocked the timer,
  there would be a leak.
* "/server -d" wouldn't erase the notify list and one or two other things
  for the server
* And the last one I am _not_ sure about.  prepare_display() had a leak,
  however, this does appear to be a work in progress, and the pointer
  in question points to a strange combination of static, dynamic and
  alloca() variables.  I made the smallest possible patch which seems
  to work, however, its quality may be questionable.

Revision 1.7 / (view) - annotate - [select for diffs] , Thu Nov 15 17:33:38 2001 UTC (6 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.6: +0 -1 lines
Diff to previous 1.6
I put GENERAL_PRIVMSG in the hook.c list twice.  Broke everything.
Removed.

Revision 1.6 / (view) - annotate - [select for diffs] , Thu Nov 15 17:29:00 2001 UTC (6 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.5: +4 -1 lines
Diff to previous 1.5
Ok.  ESR asked us to change our manpage.  Some of his changes worked,
some of them did not.  I took the ones that did work.

Add /on general_notice and /on general_privmsg.  These will be documented
in UPDATES -- they are generalized versions of /on (msg*|public*) and
/on (notice|server_notice).

Break backwards compatability on /on ctcp_reply by changing $*
	$0	Sender
	$1	Target		[new]
	$2	CTCP command	[Was $1]
	$3-	CTCP Arguments	[Was $2-]
Everyone i asked wanted this change, so i claim immunity.

Revision 1.5 / (view) - annotate - [select for diffs] , Mon Oct 15 19:17:26 2001 UTC (6 years, 9 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_1
Changes since 1.4: +8 -9 lines
Diff to previous 1.4
The value returned by parse_command_with_return in do_hook is malloced
and needs to be freed.  Rearranged the code a little to make this clean.

Revision 1.4 / (view) - annotate - [select for diffs] , Sun Mar 25 05:10:21 2001 UTC (7 years, 4 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_0_1, epic4-1_0, epic-test-tag2, epic-test-tag
Changes since 1.3: +1 -1 lines
Diff to previous 1.3
Revert the previous change -- this is a bad time to experiment.

Revision 1.3 / (view) - annotate - [select for diffs] , Sun Mar 25 05:08:46 2001 UTC (7 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2
/on topic throws three arguments, not two; fix the numargs value for
/on topic in hook.c

Revision 1.2 / (view) - annotate - [select for diffs] , Tue Jan 23 19:00:27 2001 UTC (7 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-0_9_17, epic4-0_9_16, epic4-0_10_0
Changes since 1.1: +1 -0 lines
Diff to previous 1.1
Commit #29:
* Add /on error, to handle ERROR protocol messages.
* Fix /window * toggle, to actually toggle.
* Add /defer command, per email on epic list.
* New hybrid6 script from is-.
* Fix a bug with strlcat() from openbsd via freebsd.
* Axe long broken "1 second cursor in window" delay thing.
* Repeal the "deferred free" stuff in 0.9.15-10 that wasn't too good.
That's it!

Revision 1.1.1.1 / (view) - annotate - [select for diffs] (vendor branch) , Tue Dec 5 00:11:57 2000 UTC (7 years, 8 months ago) by jnelson
Branch: epicsol
CVS Tags: start, epic4_0_9_15, epic4-0_9_15, epic4-0_9_14
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, 8 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