Peter Powell
e3bcf95ee9
Prefix all definitions in config.h to avoid potential collisions.
2014-05-23 14:13:51 +02:00
Peter Powell
c511bb56f5
Kill <channels> in favour of <connect:maxchans> and <oper:maxchans>.
...
Remove channels/high-join-limit privilege
2014-04-11 16:14:10 +02:00
Attila Molnar
10bae31483
Remove unused User::WriteCommonExcept()
...
WriteCommonRaw(msg, false) has similiar functionality with a std::string parameter
2014-04-02 12:52:20 +02:00
Attila Molnar
2465f88a58
Move User::SendAll() into core_privmsg
...
This functionality is only used by the PRIVMSG and NOTICE handlers
2014-04-02 12:50:04 +02:00
Attila Molnar
a6e68c0d34
Remove User::WriteTo() functions; use User::WriteFrom() instead
...
The removed functions were rarely used and all they did was to call User::WriteFrom() with swapped arguments. On call sites, WriteTo() hardly offers any readability improvement over WriteFrom().
2014-04-02 12:44:12 +02:00
Attila Molnar
8f31b0cf2a
Change storage of UserManager::all_opers to be a vector
2014-03-25 11:03:29 +01:00
Attila Molnar
d60103cada
Rewrite clone counting to use one map instead of two
2014-03-17 11:05:09 +01:00
Attila Molnar
ea590a5d80
Change allocation of UserManager::clientlist to be physically part of the object containing it
2014-03-15 15:29:25 +01:00
Attila Molnar
adb26a4e88
Change allocation of UserManager::uuidlist to be physically part of the object containing it
2014-03-14 13:04:10 +01:00
Peter Powell
f2db4b743f
Make the maximum hostname length configurable in the config.
2014-03-08 13:01:09 +01:00
Attila Molnar
b1173ca66a
Update nick timestamps in User::ChangeNick(), pass the new TS in a parameter
2014-03-03 15:07:17 +01:00
Attila Molnar
a5ca8b892c
Remove REG_ALL checks from User::SharesChannelWith()
...
These checks are never true currently and even if one or both users are unregistered proceeding is harmless
2014-02-27 17:16:48 +01:00
Attila Molnar
7ffef79f97
Index Channel::modes and User::modes with the id of the mode instead of its letter
2014-02-21 15:11:24 +01:00
Attila Molnar
efe77ba63b
Change all socketengine methods to be static
2014-02-08 23:01:44 +01:00
Peter Powell
db0e78c5d2
Fix various cases of UUID exposure.
...
- Introduce WriteCommand which sends * when the user has not registered.
- Switch a ton of code to use WriteCommand instead of WriteServ.
- Convert WriteNotice to be a wrapper around WriteCommand.
- Only send * when NICK has not been sent instead of before registration.
2014-02-06 23:10:01 +01:00
Peter Powell
074727e7a7
Convert InspIRCd::PassCompare to return bool instead of int.
...
The insane behaviour of this method was due to an implementation
detail which has since become irrelevent.
2014-01-25 12:20:04 +01:00
Attila Molnar
48869b38e9
Destroy Memberships of a quitting user in QuitUser() instead of in cull()
2014-01-25 12:15:01 +01:00
Attila Molnar
8537a54950
Remove classbase inheritance from Invitation
2014-01-24 13:12:40 +01:00
Attila Molnar
f1f8173bb5
Convert LocalUserList to an intrusively linked list
2014-01-24 13:08:13 +01:00
Attila Molnar
932e8d13f8
Convert UserChanList to an intrusively linked list
2014-01-24 12:58:01 +01:00
Attila Molnar
d02011d69f
Remove whitespace and minor style changes
2014-01-23 14:37:09 +01:00
Attila Molnar
e244cb2c63
Merge insp20
2014-01-21 18:44:08 +01:00
Peter Powell
d0a472641b
Fix some logically dead code which was found by Coverity.
2014-01-21 00:43:12 +01:00
Attila Molnar
1cf73c8f32
Don't send the "your unique ID" (numeric 042) message on connect
2014-01-13 15:20:01 +01:00
Attila Molnar
36f12984d3
Stop null checking pointers that are always valid
2014-01-09 13:33:33 +01:00
Attila Molnar
11916574f6
Introduce Server class
...
- Replaces std::string server in User
- Replaces InspIRCd::ULine() and SilentULine()
2014-01-05 15:04:01 +01:00
Attila Molnar
d736eba00b
Improve UserManager::QuitUser() and related code
...
- Make operreason optional; NULL means same as quitreason
- Remove User::quietquit, it is now handled internally in spanningtree
- Send snotice about quitting remote users from spanningtree
2014-01-05 14:17:12 +01:00
Adam
6c7a3ceb6c
Use WriteNumeric() everywhere we send numerics and include the user's nick automatically
2013-11-12 06:51:31 -05:00
ChrisTX
426752022e
Improve support for rarely used compilers, EKOPath in this case.
2013-08-31 01:17:07 +02:00
attilamolnar
37394a80c2
Clean up a few constructors
...
Do not silently correct a zero TS in Channel::Channel(); require callers to supply a valid TS instead
2013-08-12 20:10:06 +02:00
Peter Powell
03a623a284
Rename <connect:nouserdns> to <connect:resolvehostnames>.
...
This name is more descriptive and avoids a double negative which
could make the name of this setting unclear to non-native speakers.
2013-08-10 14:04:09 +01:00
attilamolnar
dafa2f3031
Remove virtual User::GetClass() (but keep LocalUser::GetClass())
2013-08-09 18:28:11 +02:00
attilamolnar
b4542af6b4
Accept std::string as parameter in User::ChangeHost(), ChangeIdent() and ChangeName()
...
Pass the string itself to IsIdent() instead of string.c_str()
2013-08-09 18:20:12 +02:00
attilamolnar
e4b76e6502
Move host cycle logic into m_hostcycle
2013-08-09 18:10:48 +02:00
attilamolnar
3093559947
Call ModeParser::Process() directly instead of going through the CommandParser
...
Simplify the way how m_conn_umodes assembles the modes it sets
2013-08-04 19:13:52 +02:00
attilamolnar
8a4744f8db
FakeUsers are only inserted into UserManager::uuidlist; don't try to erase() them from clientlist
2013-08-04 19:03:35 +02:00
Adam
8710724b55
Change the syntax of FOREACH macros to be less dumb.
2013-08-04 16:08:57 +02:00
attilamolnar
457d5da692
Fix generated snomask mode change string being incosistent with the input in certain cases, spotted by @Robby-
2013-07-20 18:45:35 +02:00
attilamolnar
2dc01893c6
Get rid of enum UserModes and mark User::modes as private
2013-07-19 19:40:05 +02:00
attilamolnar
fd1d19d634
Replace hardcoded mode letters, part 3
...
This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core
2013-07-19 19:40:04 +02:00
attilamolnar
882084defc
Move SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the User class to the snomask modehandler
2013-07-19 19:40:03 +02:00
Daniel Vassdal
3ae91bafe7
Allow for skipping clone checking before DNS is complete.
2013-07-02 10:55:51 -07:00
Peter Powell
e01df6385e
Convert User::SendText to use std::string.
2013-06-06 01:45:04 +01:00
Peter Powell
ef3799a43a
Convert User::FormatNoticeMasks() to use std::string.
2013-06-06 01:45:04 +01:00
Peter Powell
c5bc6c1cf5
Replace some C string operations with the + operator.
2013-06-06 01:45:04 +01:00
Peter Powell
6f54bc95a4
Use InspIRCd::Format instead of snprintf().
2013-06-06 01:45:04 +01:00
Peter Powell
cc79342f50
Compare to ServerLimits::MaxLine instead of MAXBUF.
2013-06-06 01:06:47 +01:00
Peter Powell
047e291797
Reserve ServerLimits::MaxLine instead of MAXBUF.
2013-06-06 00:41:07 +01:00
attilamolnar
d9d99cd02d
Merge insp20
2013-06-06 01:07:22 +02:00
attilamolnar
1911857e3a
Cache mode list that is sent in the 004 numeric
...
Deduplicate UserModeList(), ChannelModeList() and ParaModeList() code
2013-05-24 18:22:25 +02:00