Sadie Powell
e7e8447fa3
Deduplicate code for checking if a user is securely connected.
2021-08-01 19:23:48 +01:00
Robby
c5a4e8337c
Update copyright to 2021.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2021 Anope Team/i' {} \;
2021-01-07 03:31:08 +01:00
Robby
c8699c6726
Update copyright to 2020.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2020 Anope Team/i' {} \;
2020-01-04 15:51:20 +01:00
Peter Powell
6617d29b52
Fix a bunch of broken indentation.
2019-12-14 18:38:13 +00:00
Robby
a2446b8d4b
Merge pull request #224 from genius3000/2.0+deoper_superadmin
...
Ensure SuperAdmin isn't left on when de-opering
2019-02-14 04:41:27 +01:00
Robby
6fbb7cffe9
Update copyright to 2019.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2019 Anope Team/i' {} \;
2019-01-01 17:43:35 +01:00
Matt Schatz
38721993f1
Ensure SuperAdmin isn't left on when de-opering
2018-07-14 17:38:37 -06:00
Robby
e03ae0cd85
Update copyright to 2018.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2018 Anope Team/i' {} \;
2018-04-25 19:22:13 +02:00
Robby
76ce8ece1a
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
2017-01-17 05:03:25 +01:00
Robby
8656b65e39
Update copyright to 2017.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2017 Anope Team/i' {} \;
Added missing copyright headers to files that didn't have it yet.
2017-01-16 03:13:25 +01:00
Adam
ec7ce09ef4
Make User::Mask behave more like 1.8
2016-12-22 20:52:43 -05:00
Adam
4b97a9b13f
Fix crash loading enc_old prior to the proto mods
2016-11-03 22:54:35 -04:00
Adam
18fc113984
#1681 update last realname always on signon
2016-07-03 13:06:06 -04:00
Robby
f118960a25
Update copyright to 2016. This was done with:
...
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \;
Added missing copyright headers to files that didn't have it yet.
Fixed some whitespace and blank lines along the way.
2016-01-28 20:24:49 +01:00
Adam
ceddb8370c
Unset extensibles on larger objects when they destruct
...
Some complex extensibles require the full object to still be alive in
their destructors to keep proper bookkeeping
2015-07-13 17:59:14 -04:00
Adam
afffeb0a1d
Update Kill() calls to pass source pointer instead of name
2014-12-05 17:27:08 -05:00
Adam
f627a3bacd
Core prep for p10 stuff
2014-05-21 08:50:40 -04:00
Adam
866f3f32ab
Speed up akill xline checks
...
Cache xline nick, user, host, etc instead of rebuilding it everytime its
requested. Store users ip in sockaddr form and not string form to
prevent having to rebuild sockaddrs when checking xlines.
Also do not try to convert empty config values in Config::Get as this
can be rather common if a non string configuration value is not set, and
the cost of the ConvertException is great.
2014-05-20 21:16:00 -04:00
Adam
13ea98a02e
Fix server usercounter not being incremented when servers are bursting
2014-05-19 22:46:28 -04:00
Adam
fb5c5e3442
Set minus no arg on +l in all proto mods
...
Set oper modes/vhost on oper too, evan after iding
Add umode +q to plexus
2014-04-02 22:37:35 -04:00
Adam
fee016bb84
Handle nick collisions somewhat instead of blindly overwriting the nicks
...
in memory, which does weird things.
For fun different ircds implement this differently (Unreal compares
timestamps, TS6 compares timestamps and user username/host), and whether
or not we get a kill for our user also varies, so just kill everyone.
This can't really happen anyway with properly set qlines, only if
services haven't yet set the qlines, or possibly in a bot add/nick
user introduce race, or with enforcers, which not many ircds require.
2014-02-27 22:42:54 -05:00
Adam
6d61a84286
Add an opertype priv "protected" to not allow services to kick a user.
...
Also classify ulines as protected
2014-02-09 18:51:52 -05:00
Adam
4d9273efa4
Unbreak account stuff from commit ccae59430a.
2014-01-21 17:20:15 -05:00
Adam
ccae59430a
Call User::Login after sending the login event, in case a module wants to act on the fact that the ircd sees the user as logged in
2014-01-14 03:49:22 -05:00
Adam
15a27c69ba
Move oper count and vhost stuff to set/remove mode internal
2014-01-09 17:01:18 -05:00
Adam
595dad4ec1
Update copyright to 2014. This was done with:
...
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \;
2014-01-01 20:48:38 -05:00
DukePyrolator
6cde65a57f
new event OnSetDisplayedHost
2013-10-26 18:33:07 +02:00
DukePyrolator
752a5ca1b7
add vhost support for hybrid
2013-08-31 08:46:56 +02:00
Adam
6b79349e6c
Fix User::IsIdentified with check_nick, do not remove +r on bursting clients until after server sync
2013-08-25 23:26:45 -04:00
Adam
1e625b6837
Use MessageSource as the source for many IRCDProto funcs
...
Keep track of what user modes are oper only/server only/etc
2013-08-01 13:39:35 +00:00
Adam
5aac04dffe
Move SendLogin() back to User::Identify, it was moved at some point? but doesn't as intended in ::Login
2013-07-21 00:23:24 -04:00
Adam
1a3d9a016d
Change extensible keys to require explicitly having a type defined for it. Completely modularize more features like bs_kick, entrymsg, log, mode, etc. Move fantasy to its own module. Move greet to its own module.
2013-07-01 22:17:52 -04:00
Adam
5ac1e9175d
Set vhosts when users id to an account (and not a nick), add account arg to user ctor to ease handling users who connect already identified
2013-06-19 19:03:56 -04:00
Adam
37b3535543
Initially attach all modules to all events, and detach them as the events are run if they are not implemented per module
2013-05-27 19:36:37 -04:00
Adam
22658d63bd
Get rid of the remaining references in the core to specific services. Move more stuff out of the core to the proper modules.
2013-05-26 17:13:11 -04:00
Adam
14dc142a92
Add botserv bot usermode config option
2013-05-18 14:26:18 -04:00
Adam
735f0ba6cf
Fix crash when we kill users because of a double free
2013-05-08 18:26:23 -04:00
Adam
9b07e163c0
Make sockaddrs/cidr not throw on invalid ips to give us an easier/cheaper way to test for a valid IP
2013-05-08 09:50:43 -04:00
Adam
5b3f81ea78
That doesn't work either, just don't use references.
...
find ./ -name '*.cpp' -exec sed -i 's/Get<const Anope::string\&>/Get<const Anope::string>/g' {} \;
2013-05-05 21:05:43 -04:00
Adam
57c2b65f08
Move module header files to include/modules to fix naming conflicts with system headers
2013-05-05 03:30:08 -04:00
Adam
e91de41278
Add an option to sepstream to allow it to return empty tokens if multiple separators are found in a row
2013-05-05 02:00:33 -04:00
Adam
1d0bb9b26b
Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in.
2013-05-05 01:55:04 -04:00
Adam
2eae82da5c
Check the channel secure option isn't set in ChannelInfo::AccessFor too
2013-04-08 01:01:27 -05:00
Adam
fb7fef7a84
Optimizations of much of the more commonly used code
2013-04-07 23:46:44 -05:00
Adam
deedb3bdd7
Dont call SetCloakedHost in users constructor, just set chost, because SetCloakedHost logs a message like the user just changed their host
2013-03-22 11:46:30 -05:00
Adam
ddaa001daf
Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums
2013-01-21 22:31:16 -05:00
Adam
5007b72b28
Update copyright to 2013. This was done with:
...
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-2012 Anope Team/-2013 Anope Team/i' {} \;
2013-01-09 04:20:55 -05:00
Adam
23e303aaa2
Move enforcer checks on nick and logout to nickserv.cpp
2013-01-03 13:20:10 -05:00
Adam
098157dca8
Don't delete users immediately when quit or killed, instead wait until message processing is done
2013-01-03 12:34:01 -05:00
Adam
b591e8cdc8
Use the same object for chanusercontainer and userchancontainer
2012-12-28 10:43:30 -05:00