CVS log for epic4/source/notice.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] , Thu Dec 4 04:12:22 2003 UTC (4 years, 7 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, HEAD
Changes since 1.26: +2 -5 lines
Diff to previous 1.26
* Fix /window kill so it doesn't swap in a window too early.
* Make NOTICEs from servers to channels (on ircnet) go to that channel's win.
EPIC4-1.2.2!

Revision 1.26 / (view) - annotate - [select for diffs] , Thu Sep 25 20:24:33 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_2_1, epic4-1_2_0, epic4-1_1_17, epic4-1_1_16, epic4-1_1_15, epic4-1_1_14, epic4-1_1_13
Changes since 1.25: +6 -2 lines
Diff to previous 1.25
Fix it so you can compile on systems without (intptr_t) again.

Revision 1.25 / (view) - annotate - [select for diffs] , Tue Sep 23 20:49:47 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24
* 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.24 / (view) - annotate - [select for diffs] , Fri Sep 12 17:58:34 2003 UTC (4 years, 9 months ago) by crazyed
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23
* Fixed the ENCRYPTED_PRIVMSG/NOTICE hooks to append the decrypted data
  as before.
* Turned the umodes setting on again (set by the server in the 004(?)
  numeric and accessible in the client via $serverctl([gs]et umodes).
  I need to talk to people who have difficulties with this.

Revision 1.23 / (view) - annotate - [select for diffs] , Thu Jul 31 05:29:37 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22
Make some compile warnings go away by using (intptr_t).  I hope this
doesn't bite me -- every system I checked has (intptr_t)..

Revision 1.22 / (view) - annotate - [select for diffs] , Fri May 9 03:29:52 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_12
Changes since 1.21: +3 -2 lines
Diff to previous 1.21
* 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.21 / (view) - annotate - [select for diffs] , Thu Apr 24 20:49:25 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20
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.14.2.2 / (view) - annotate - [select for diffs] , Mon Mar 24 17:53:01 2003 UTC (5 years, 3 months ago) by wd
Branch: wd-devel
Changes since 1.14.2.1: +0 -0 lines
Diff to previous 1.14.2.1 to branch point 1.14 to next main 1.15
Another merge.

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

Revision 1.20 / (view) - annotate - [select for diffs] , Wed Feb 19 03:26:45 2003 UTC (5 years, 4 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_11
Changes since 1.19: +2 -2 lines
Diff to previous 1.19
* Fix for a flood checking bug which locks the client in the state of
  believing it's always receiving a notice.

Revision 1.19 / (view) - annotate - [select for diffs] , Wed Feb 12 05:34:33 2003 UTC (5 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.18: +9 -8 lines
Diff to previous 1.18
This fix is a little bit less lame than commit 460 for the @#chan problem.

Revision 1.18 / (view) - annotate - [select for diffs] , Wed Feb 12 05:19:48 2003 UTC (5 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.17: +6 -4 lines
Diff to previous 1.17
Commit 460
* Don't clobber 'target' in /on general_notice; pass the original target.

Revision 1.17 / (view) - annotate - [select for diffs] , Fri Jan 31 23:50:18 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.16: +94 -88 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] , Sun Jan 26 03:25:38 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.15: +7 -15 lines
Diff to previous 1.15
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.15 / (view) - annotate - [select for diffs] , Thu Dec 19 03:22:59 2002 UTC (5 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_9, epic4-1_1_8, epic4-1_1_10
Changes since 1.14: +5 -5 lines
Diff to previous 1.14
* Use server_list_size() and not number_of_servers outside of server.c
* Use NOSERV and not -1 for "no server"
* Use (Timeval) and not (struct timeval)
* Fix (get|set)_server_sent_*() et al to take server refnum.
* Use parse_server_index() and not my_atol() to parse server refnums
* re-indent quotecmd
* Rename is_server_connected() to is_server_registered
* Make /quote work as long as server is open (not registered)
* Use send_to_aserver() when it can avoid setting from_server unecessarily
* Change sent_to_server and clear_sent_to_server to (set|get)server_sent().
* Change doing_* to get_server_doing_*.
* Use (unsigned short) and not (u_short)
* Use (unsigned long) and not (u_long)
* Make output_reject_ctcp() take a refnum
* Lock a dcc while we are connecting it, just in case. ;-)
* Fix /dcc send -p <port>
* Store protocol enforcements as (get|set)_server_protocol_state().
* Use (Stat) and not (struct stat)
* Rewrite $timerctl() so it works like $logctl()
* Rename is_server_connected() to is_server_registered()
* Fix an off-by-one error with /FOR ... IN ...
* Keep track of both readable and writable fd's with newio stuff.
* Convert server_list to an array of pointers
* When user /server -delete's, leave a gap, don't change refnums around.
* Nix code that handles deleting server refnums.
* New function, new_open_for_writing(), for when we do nonblocking connects.
* Change new_open() to deregister fd as "writable"
* Renovate the notify stuff to take refnums and not just use from_server.
* Renovate /WHO, /ISON, /USERHOST to take refnums and not just use from_server.
* Make everything that uses server_list[] use get_server() instead.
* Make everything capable of dealing with "gaps" in server_list[].
* Use a bunch of macros, to handle with getting and setting server attrs.
* Make as much as possible use refnums as params and not from_server.
* And a lot of other stuff...

Revision 1.14 / (view) - annotate - [select for diffs] , Fri Nov 8 23:36:12 2002 UTC (5 years, 7 months ago) by jnelson
Branch: MAIN
Branch point for: wd-devel
Changes since 1.13: +4 -5 lines
Diff to previous 1.13
Another round of epic5 changes...
* Make $B, $., $,, $:, $;, $I, /WAIT stuff server specific, from epic5
* Make tracking of doing_(privmsg|notice|ctcp) server specific, from epic5
* Fixes for Const Correctness.

Revision 1.13 / (view) - annotate - [select for diffs] , Thu Sep 26 21:41:43 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12
Ach.  Here goes nothing.
Major commit which does many things, but the most prominent of which
is the final integration of the scrollback buffer with the hold buffer.
This fixes several annoying "features" and introduces a small truckload
of new features which have been requested recently.  Please see the
KNOWNBUGS or UPDATES file for more info, since I don't want this message
to be ridiculously long.

Revision 1.12 / (view) - annotate - [select for diffs] , Tue Jul 30 18:37:17 2002 UTC (5 years, 11 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_7, epic4-1_1_6
Changes since 1.11: +2 -2 lines
Diff to previous 1.11
* Reverted UMODES from the last patch.

Revision 1.11 / (view) - annotate - [select for diffs] , Tue Jul 30 15:12:59 2002 UTC (5 years, 11 months ago) by crazyed
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10
* Added support for CHANMODES, PREFIX and CHANTYPES in the processing of
  modes.  If the server doesn't support these, then hopefuly sane default
  strings are chosen, and these _don't_ include the wacky extensions that
  have been added over the years, so conceivably, this could break things
  like halfops and ban/invite exemptions.
* Stored the UMODES field from the 004 numeric in the server data.  Can be
  retrieved with $serverctl(get x umodes).
* Altered "/msg @$fd" so that $fd must be a number, otherwise, it will be
  treated as a privmsg.
* Added $xdebug() which returns all single bit flags with + or - added as
  appropriate.  /xdebug $xdebug() is a no-op.
* Fixed an /xdebug bug in which - would cause all subsequent flags to be
  switched off.  For bug compatibility, it still works this way, but you
  can specify + to turn all subsequent values on.
* Altered m_sc3cat_s() to call m_sc3cat rather than m_c3cat, which results
  in a cleaner string.  Examination of the uses of this function showed
  that they all dealt with this bug in some way.
* Altered $which() to call path_search() directly, rather than uzfopen().
  It may be useful to add a flag to path_search indicating which attributes
  we are searching for.  This could cause problems since the old method
  would skip over a file if it wasn't readable.
* Added clue variables for $unsplit().

Revision 1.10 / (view) - annotate - [select for diffs] , Wed Jul 17 21:52:52 2002 UTC (5 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.9: +29 -8 lines
Diff to previous 1.9
Update copyright notices and copyright dates.

Revision 1.9 / (view) - annotate - [select for diffs] , Thu Jan 24 10:45:25 2002 UTC (6 years, 5 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_5, epic4-1_1_4, epic4-1_1_3
Changes since 1.8: +3 -3 lines
Diff to previous 1.8
* 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.8 / (view) - annotate - [select for diffs] , Thu Dec 6 02:10:48 2001 UTC (6 years, 7 months ago) by crazyed
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7
* Bug fix:  *shoot me*  $encryptparm() wouldn't check if the program field
  was empty before sprinting it.
* Failed received SED messages make their way through encrypted_privmsg and
  encrypted_notice now just like the successful ones, only without the
  "[encrypted message]" message.  The reasoning is that first of all, it
  should be possible to block these messages and secondly it makes it a lot
  easier to script a secure key exchange.  The failure hooks are called with
  only two arguments (no message).  This may be a bad idea.  On the one hand
  it makes it easier for a script to catch, on the other, the hook looses
  certain critical information.

Revision 1.7 / (view) - annotate - [select for diffs] , Mon Dec 3 01:48:47 2001 UTC (6 years, 7 months ago) by crazyed
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6
Reset the "sed" global to 0 at the beginning of every PRIVMSG/NOTICE.  This
may be slightly inconsistant with design in that it seems to be only reset
at the end, however, there are also a few exit points that break with
consistancy, and this just seems to make more sense.

Revision 1.6 / (view) - annotate - [select for diffs] , Mon Nov 19 17:57:10 2001 UTC (6 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.5: +23 -28 lines
Diff to previous 1.5
Do not hook /on general_notice if the user hooks /on kill or /on oper_notice
to prevent multiple hookings of the same notice.

Revision 1.5 / (view) - annotate - [select for diffs] , Thu Nov 15 17:29:00 2001 UTC (6 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.4: +14 -8 lines
Diff to previous 1.4
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.4 / (view) - annotate - [select for diffs] , Wed Nov 14 21:37:23 2001 UTC (6 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.3: +30 -15 lines
Diff to previous 1.3
~/.epicrc support!  kb should like this.

Revision 1.3 / (view) - annotate - [select for diffs] , Tue May 8 21:14:22 2001 UTC (7 years, 1 month ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_1
Changes since 1.2: +5 -9 lines
Diff to previous 1.2
Rework some comments to avoid offending server coders who do not like
to see breaking of backwards compatability refered to as "broken".

Revision 1.2 / (view) - annotate - [select for diffs] , Tue May 8 19:05:21 2001 UTC (7 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.1: +7 -3 lines
Diff to previous 1.1
Change one comment around to avoid offending one of the hybrid coders.

Revision 1.1.1.1 / (view) - annotate - [select for diffs] (vendor branch) , Tue Dec 5 00:11:57 2000 UTC (7 years, 7 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, 7 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