William Pitcock
e47c4be18c
helpops: MyClient() check is wrong, we only care if it is a Person or a Server
2016-09-16 12:57:34 -05:00
William Pitcock
8093dc5fb7
helpops: handle cleaning up remote opers from the helpops list
2016-09-16 12:56:18 -05:00
Aaron Jones
ba1edd7277
mkpasswd: use urandom for salts, cleanup
...
Using /dev/random for salt generation is pointless -- it can block, and
any extra randomness it would provide (which is debatable) is not needed,
as salts only need to be unique, not unpredictable.
2016-08-15 09:50:53 +00:00
Elizabeth Myers
4eafa9e62f
ipv4_from_ipv6: move to librb
2016-04-08 03:49:23 -05:00
Elizabeth Myers
f956cb0f1f
Use rb_* versions of nonportable string functions
2016-04-05 05:39:59 -05:00
Elizabeth Myers
0ed0a9fe0a
Move m_locops module to extensions.
...
Many networks do not use local ops and therefore should not be required
to have this around all the time.
2016-04-02 05:20:30 -05:00
Aaron Jones
fef6857e3f
extensions: Fix duplicate extban character usage
...
extb_usermode and extb_hostmask both use the same extban character
('m'), resulting in only one of the modules being usable (depending
on module load order) and neither one functioning if one of them
is unloaded.
This changes the character for extb_usermode from 'm' to 'u'.
[ci skip]
2016-03-28 03:26:10 +01:00
Matt Ullman
afba2488ec
extb_combi: More int to bool conversion
...
Cleanup whitespace in ircd_lexer.l
2016-03-25 19:47:58 -04:00
Elizabeth Myers
fea4e2d2a8
modules: libircd depends on librb, so no need to include it.
...
This triggers multiple inclusion warnings on Solaris also.
2016-03-23 13:59:45 -05:00
Elizabeth Myers
79435744c7
common.h: raison d'être is gone, so out it goes.
...
Fold whatever was left into ircd_defs.h
2016-03-23 09:33:56 -05:00
Matt Ullman
66769bc1f8
More cleanup
2016-03-23 00:11:26 -04:00
Matt Ullman
e23126c83b
Cleanup warnings
2016-03-21 22:28:41 -04:00
William Pitcock
032ef5ef9e
modules: more GET_SS_FAMILY() checking
2016-03-20 04:46:50 -05:00
William Pitcock
c0949eb003
extensions/m_webirc: win32 fixes
2016-03-20 02:26:30 -05:00
Elizabeth Myers
503727d1ee
More bool conversions
2016-03-09 02:19:31 -06:00
Elizabeth Myers
3c7d6fcce7
Message handlers should return void.
...
Also fix up some return values and stuff to use bool (or void if
nothing). I just did it whilst I was here.
According to jilles, the return value used to signify whether or not the
client had exited. This was error-prone and was fixed a long, long time
ago, but the return value was left int for historical reasons.
Since the return type is not used (and has no clear use case anyway),
it's safe to just get rid of it.
2016-03-09 01:37:03 -06:00
Elizabeth Myers
eeabf33a7c
Move module description headers to the top
...
This is cleaner.
Note this was broken out of a much larger piece of work I did, so if
there's any problems, I apologise!
2016-03-09 01:29:41 -06:00
Max Teufel
54d8925ed4
extensions: add umode_noctcp extension
2016-03-07 18:48:14 +01:00
Elizabeth Myers
a278a4fc68
AV2 descriptions: forgot these
2016-03-07 04:11:58 -06:00
Elizabeth Myers
3bde01a819
Update extensions/spy_* with AV2 descriptions.
2016-03-07 04:09:14 -06:00
Elizabeth Myers
84b4c05888
Add AV2 descriptions for extensions/sno_*
2016-03-07 04:02:27 -06:00
Elizabeth Myers
3fd3d7e176
Port some more extensions to AV2 and add descriptions
2016-03-07 03:50:03 -06:00
Elizabeth Myers
8699801ca2
Compensate for my obviously diminished faculties.
2016-03-07 03:42:43 -06:00
Elizabeth Myers
02369fa767
Give all extensions/m_* modules AV2 descriptions
2016-03-07 03:40:51 -06:00
Elizabeth Myers
dacd2aa8c2
Bump some extensions to AV2 and add descriptions
2016-03-07 03:08:40 -06:00
Elizabeth Myers
de2b673f5a
example_module: forgot a stupid semicolon.
2016-03-07 01:35:35 -06:00
Elizabeth Myers
4d552723ee
example_module: update for AV2.
2016-03-07 01:27:57 -06:00
William Pitcock
c81afd1580
extensions: add AV2 description strings to a few modules
2016-03-07 00:32:01 -06:00
Elizabeth Myers
1bb809cb30
Remove m_42 from README.
2016-03-06 23:58:32 -06:00
Elizabeth Myers
d40217b4f6
Bye m_42.
...
Mostly a useless hybrid relic that nobody had used for years.
2016-03-06 23:57:50 -06:00
Elizabeth Myers
04f832b778
Bump all extensions to AV2
...
Most do not yet have descriptions, but that's trivial.
2016-03-06 23:57:10 -06:00
Elizabeth Myers
581dad19a4
Update chm_* modules to AV2
2016-03-06 23:48:27 -06:00
Elizabeth Myers
216d70e91d
modules: tag origin at load time.
2016-03-06 18:57:05 -06:00
Elizabeth Myers
c63aeb44e9
modules: add origin field to V2
2016-03-06 17:52:49 -06:00
Elizabeth Myers
c168ef1864
m_remove: use new AV2 MAPI
2016-03-06 17:27:02 -06:00
Elizabeth Myers
a4bf26dd34
Move irc_* data structures to librb.
...
This makes the base ircd less cluttered up with data structures that can
go elsewhere.
2016-03-06 14:17:19 -06:00
Elizabeth Myers
fe037171d6
Change all leftover libratbox stuff to librb.
2016-03-06 03:49:27 -06:00
Elizabeth Myers
c6d81c6d59
m_echotags: Oops...
2016-03-06 02:49:16 -06:00
Elizabeth Myers
cbeab4bc34
Remove $Id tags from everything.
...
These are obsolete and none have changed since 10 years gao...
2016-03-06 02:47:27 -06:00
William Pitcock
c83f2f5e12
rename libratbox to librb, since its pretty modified anyway
2016-03-06 02:30:20 -06:00
Elizabeth Myers
1d91de8100
Remove old .indent.pro files
...
These have been unused since dinosaurs roamed the earth and are mostly
smelly old Hybrid relics.
2016-03-05 21:21:36 -06:00
William Pitcock
9ea48ec30a
remove presupplied autotools files
2016-03-05 17:47:48 -06:00
William Pitcock
63b9db9675
capability: allow attaching capability-owner data to a capability token, to enable extended data for client capabilities
2016-02-26 23:55:43 -06:00
William Pitcock
c678fbc08b
ircd: remove broken USE_IODEBUG_HOOKS knob and related code
2016-02-20 12:02:49 -06:00
William Pitcock
7baa37a9ef
msg: remove last vestiges of the fakelag system. charybdis has never supported fakelag.
2016-02-19 16:43:39 -06:00
William Pitcock
ca45daba73
extensions: add m_echotags extension to echo back your tags in NOTICE form
2016-02-10 21:00:27 -06:00
William Pitcock
760bafdac3
extensions: update for API change
2016-02-10 20:14:22 -06:00
Valerii Iatsko
5203cba5ce
Remove libratbox's snprintf.c, update related ircd code
2016-02-10 02:25:32 +01:00
William Pitcock
c4e9deaef9
extensions: add chm_insecure, which has the opposite effect of chm_sslonly.
...
This module makes SSL required to join any channels except for ones specifically marked insecure.
It is meant to be used in a migration path away from plaintext IRC.
2016-01-29 22:26:41 -05:00
Jilles Tjoelker
58855a9f2c
extensions/helpops: Do not use oper:hidden.
...
If +H is a separate umode and privilege, there is no reason to have
oper:hidden, which did not work properly anyway since it is not propagated
to other servers.
2016-01-16 15:23:32 +01:00
William Pitcock
103a1bfd34
extensions/override: disable false positive modehack notice
2016-01-16 02:28:49 -06:00
William Pitcock
f69d7febc7
extensions/override: improve KICK override messages
2016-01-16 02:04:01 -06:00
William Pitcock
161ac1c8d5
extensions/helpops: implement DEHELPER command
2016-01-14 15:16:29 -06:00
William Pitcock
4d21f1e8e0
extensions/helpops: new module, implementing a helpops system.
...
if loaded, this module takes over /stats p, and displays people who are umode +H.
to get umode +H, one must have the "usermode:helpops" permission.
2016-01-14 08:08:40 -06:00
William Pitcock
3ee43bcf29
ircd: get_channel_access(): do not derive channel pointer from membership
2016-01-13 22:16:44 -06:00
William Pitcock
e118f2d431
extensions/chm_operpeace: new module which disallows kicking of operators on select channels
2016-01-13 16:52:56 -06:00
William Pitcock
88c48be58c
extensions/sno_globalnickchange: import from ircd-seven
2016-01-12 07:10:39 -06:00
William Pitcock
a4721f5e9f
ircd: implement EXTENDCHANS, based on ircd-seven (with some improvements from chatircd)
2016-01-11 23:32:23 -06:00
William Pitcock
b870a5f8e9
extensions/override: display mode-change string in override messages
2016-01-11 22:40:32 -06:00
William Pitcock
e4603e3d27
parse: implement reconstruct_parv()
2016-01-11 22:28:55 -06:00
William Pitcock
49c12c23f9
extensions/m_remove: simplify the reason building code, pointed out by mniip
2016-01-10 22:27:28 -06:00
Doug Freed
a69c4f8c56
extensions/m_remove: quote user part messages
...
Quote user part messages like freenode/ircd-seven so that users can't
fake a channel op using /remove. This only applies when this module is
loaded.
2016-01-10 12:51:28 -08:00
William Pitcock
46be39faab
ircd: hash: use an irc_radixtree for storing resv's
2016-01-09 04:59:02 -06:00
William Pitcock
9e45a5ca19
buildsystem: further cleanup
2016-01-08 07:01:00 -06:00
William Pitcock
a886cb82fb
buildsystem: more LTDLINCL fixes
2016-01-08 06:57:45 -06:00
William Pitcock
f0718c93d5
configure: use correct path for libltdl
2016-01-08 06:50:01 -06:00
William Pitcock
5164a68650
buildsystem: update Makefile.in's
2016-01-08 05:20:32 -06:00
Aaron Jones
d8c4154da2
Fix LTDL conditional, remove some unnecessary and/or ugly configure tests
2016-01-07 17:15:55 +00:00
Aaron Jones
eec2776c6c
Fix some autotools discrepancies, disable SQLite threading code
2016-01-07 16:58:28 +00:00
William Pitcock
03906030a3
extensions: import sno_channelcreate from ircd-seven
2016-01-06 02:03:06 -06:00
William Pitcock
2a19fc3f57
general: remove last vestiges of static modules support (this hasn't ever actually worked...)
2016-01-06 01:28:20 -06:00
William Pitcock
46fded53d4
update buildsystem artifacts
2016-01-06 01:16:49 -06:00
William Pitcock
ff12cc9479
rename src to ircd, libcore to libircd
2016-01-06 01:16:08 -06:00
William Pitcock
bc38c72ced
buildsystem: build ircd itself as a library to allow removal of -undefined suppress on OS X
2016-01-05 21:31:21 -06:00
William Pitcock
c52df12552
buildsystem: convert to automake + libtool
2016-01-05 21:20:25 -06:00
William Pitcock
947d2bba47
extb_oper: allow matching $o:<privset> as well as $o:<permission> as in 3.4
2016-01-05 19:12:38 -06:00
William Pitcock
32d5702869
extensions: add the ability to hide uncommon channels in WHOIS, like in ircd-seven ( closes #6 )
2016-01-05 18:45:07 -06:00
William Pitcock
340b2512d4
sno_whois: fix resource leak, pointed out by mniip
2015-12-27 17:08:57 -06:00
William Pitcock
a2bc8af8c5
extb_combi: relax recursion and complexity limits now that bancache for unjoined users is fixed
2015-12-13 11:38:27 -06:00
William Pitcock
2749c37c43
extb_combi: tighten up recursion depth
2015-12-13 11:22:47 -06:00
William Pitcock
9145dc0956
extb_combi: allow up to 5 children nodes
2015-12-13 11:09:15 -06:00
William Pitcock
5984986bcf
extb_combi: if there are more nodes than allowed, return EXTBAN_INVALID
2015-12-13 11:06:04 -06:00
William Pitcock
2e548a8a04
extb_combi: try limiting the number of allowed nodes per depth to 3
2015-12-13 10:58:05 -06:00
William Pitcock
d63f3f80f0
extb_combi: implement a recursion guard
2015-12-13 07:50:02 -06:00
Jilles Tjoelker
2d28539c68
Reduce clean_nick() code duplication further.
...
Side effect: hurt and monitor now allow nicks starting with a digit.
2015-12-13 00:22:21 +01:00
William Pitcock
72dee03d50
clean up some code duplication when checking nicks for validity
2015-12-12 08:41:09 -06:00
William Pitcock
e2a9fa9cab
extenions: add a $m: extban (ref #74 )
2015-12-10 02:25:22 -06:00
William Pitcock
4ef511ebb8
import marienz's extb_combi module (ref #74 )
2015-12-10 02:20:58 -06:00
William Pitcock
202d496644
override: only engage override code if we're needing to authorize a WRITE to a channel's state ( closes #65 )
2015-12-10 01:00:32 -06:00
Jail Bird
29c92cf95f
Spring cleaning redux:
...
- Implemented changes suggested by Jilles
- Remove some unused parameters in functions
- Remove some unused ssl procs
- 63-bit time_t support in TS deltas
- const char * vs char * cleanup
- struct alignment (void *) casts
- signed vs unsigned fixes
- bad memset() call
- Bad LT_MAIN in libratbox
- char -> unsigned char casts for isdigit/isspace/etc calls
Thanks Jilles!
2015-04-20 00:55:20 -05:00
Jilles Tjoelker
3bfac098f7
extensions/extb_channel: Allow the channel itself as target even if +s/+p.
2014-07-19 20:14:14 +02:00
Jilles Tjoelker
83aa910fb9
extensions/chm_sslonly: Use some 4xx numeric for the join failure.
2014-07-19 20:14:14 +02:00
Keith Buck
55abcbb20a
Remove trailing whitespace from all .c and .h files.
...
3134 bytes were removed.
2014-03-03 04:25:47 +00:00
Jilles Tjoelker
b222b6a05a
findforwards: Don't compare array to NULL as this is always true.
2014-03-02 21:47:36 +01:00
Jilles Tjoelker
f9960c0262
extensions/mkpasswd: Do not leak /dev/random fd.
2014-02-23 22:18:44 +01:00
Jilles Tjoelker
a6b29d3ed4
extensions/roleplay: Fix memory leak on every use.
2014-02-23 22:01:04 +01:00
Jilles Tjoelker
0391874cc7
webirc: Check validity of given IP.
2014-02-23 21:14:09 +01:00
Andrew
46b55df60b
Fix grammatical error
2013-12-12 04:08:12 +00:00
Jilles Tjoelker
e5c254d7d1
override: Remove umode +p when deopering.
2013-10-25 17:49:58 +02:00
Keith Buck
0137d36122
Revert "Add m_override.c - an improved override module."
...
This reverts commit f00a55e9a1
.
2013-10-25 05:39:55 +00:00