Peter Powell
1cf8590816
Add parameter to InspIRCd::TimeString for UTC time formats.
...
Missing doc added by @attilamolnar
2014-06-25 14:41:01 +02:00
Peter Powell
da9adf9e29
Add formatting to InspIRCd::TimeString; switch all code to use it.
...
m_httpd also now uses the correct timestamp format.
Windows-specific fixes by @attilamolnar, original PR #849
2014-06-25 14:31:25 +02:00
Attila Molnar
d2760311db
Inherit ThreadQueueData from Mutex to avoid duplicating code
2014-06-24 13:09:26 +02:00
Attila Molnar
ddb1710aa3
Remove empty Thread destructor
2014-06-24 13:05:12 +02:00
Attila Molnar
a77b9081d4
Move and rename class ThreadData to ThreadEngine::ThreadState
2014-06-24 12:54:05 +02:00
Attila Molnar
7bb96595ee
Move and rename ThreadData::FreeThread() to ThreadEngine::Stop() and document what it does
2014-06-24 12:53:10 +02:00
Attila Molnar
f8d18d82c7
Make Thread::state private
2014-06-24 12:46:18 +02:00
Attila Molnar
36b9b4b399
Change allocation of ThreadData to be physically part of the object containing it
2014-06-24 12:45:21 +02:00
Attila Molnar
aa7df4b823
Remove empty ThreadEngine constructors and destructors
2014-06-24 12:40:02 +02:00
Attila Molnar
ee08a00d1b
Remove the unused ThreadEngine::GetName() method from both implementations
2014-06-24 12:36:38 +02:00
Attila Molnar
024906dbcd
Change allocation of InspIRCd::Users to be physically part of the object containing it using fakederef
2014-06-24 12:21:31 +02:00
Attila Molnar
86092ec591
Change allocation of InspIRCd::SNO to be physically part of the object containing it using fakederef
2014-06-24 12:20:02 +02:00
Attila Molnar
a3d2b44757
Change allocation of InspIRCd::Modules to be physically part of the object containing it using fakederef
2014-06-24 12:16:57 +02:00
Attila Molnar
e66ea395e4
Change allocation of InspIRCd::Logs to be physically part of the object containing it using fakederef
2014-06-24 12:15:03 +02:00
Attila Molnar
53f7229869
Change allocation of InspIRCd::Modes to be physically part of the object containing it using fakederef
2014-06-24 12:10:59 +02:00
Attila Molnar
3a921efb0b
Add the fakederef class
2014-06-24 12:08:20 +02:00
Attila Molnar
1442193c79
Change the type of the user parameter in the OnUserPreNick() hook from User to LocalUser
...
No remote users were passed to this hook before.
Remove needless IS_LOCAL() checks.
2014-06-20 16:20:19 +02:00
Attila Molnar
782c8303d7
Update the description field in the Server object representing the local server on rehash
2014-06-17 13:45:57 +02:00
Attila Molnar
b9e323b2c3
Remove unused #define ERROR -1
2014-06-14 15:14:46 +02:00
Attila Molnar
c35089b8cf
Make the default ProtocolInterface instance part of class InspIRCd
...
The protocol module no longer has to delete it on load and construct it on
unload, only assign a new value to ServerInstance->PI
2014-06-13 15:59:37 +02:00
Attila Molnar
5b1ee304b5
Change allocation of InspIRCd::Parser to be physically part of the object containing it
2014-06-13 15:45:55 +02:00
Attila Molnar
97faccd6c5
Remove global Commandtable typedef
2014-06-13 15:42:38 +02:00
Attila Molnar
15d0256e94
Make CommandParser::cmdlist private
2014-06-13 15:41:43 +02:00
Attila Molnar
085a8a34cb
Add CommandParser::GetCommands() and typedef CommandMap and use it instead of directly accessing cmdlist
2014-06-13 15:40:03 +02:00
Attila Molnar
467b276d9d
Change allocation of InspIRCd::BanCache to be physically part of the object containing it
2014-06-13 15:27:40 +02:00
Attila Molnar
caa0c27a5a
Pull in bancache.h from inspircd.h
2014-06-13 15:23:39 +02:00
Attila Molnar
9f27390382
Move the definition of the BanCacheHit constructor into the source file from the header
2014-06-13 15:19:27 +02:00
Attila Molnar
2269b9740b
Move BanCacheHash typedef into the private part of BanCacheManager
2014-06-13 15:16:12 +02:00
Attila Molnar
01de0a19ad
Change allocation of BanCacheManager::BanHash to be physically part of the object containing it
2014-06-13 15:14:31 +02:00
Attila Molnar
b071a6acd8
Change allocation of InspIRCd::Threads to be physically part of the object containing it
2014-06-13 15:09:20 +02:00
Attila Molnar
12027601cf
Change allocation of InspIRCd::stats to be physically part of the object containing it
...
While at it, remove "stats" from all field names
2014-06-13 15:03:56 +02:00
Attila Molnar
0205dd6548
Add foundation for membership ids
2014-06-11 14:04:00 +02:00
Attila Molnar
020f706bcb
Add ConvToUInt64()
2014-06-11 14:00:42 +02:00
Attila Molnar
106c0889b3
Return the newly created Membership object from Channel::ForceJoin()
2014-06-10 17:45:41 +02:00
Attila Molnar
854af2945e
Change Channel::KickUser() to accept an iterator, add overload that accepts a User
...
Remove srcmemb parameter
2014-06-10 17:12:00 +02:00
Attila Molnar
f3c6c6123d
Deduplicate ParseStack::ParseFile() and ParseExec()
2014-06-09 17:10:17 +02:00
Attila Molnar
5a6fd54f8f
Change the number reported by SocketEngine::GetMaxFds() to be informal
...
Do not exit if we can't determine it
2014-06-07 13:47:26 +02:00
Peter Powell
e3bcf95ee9
Prefix all definitions in config.h to avoid potential collisions.
2014-05-23 14:13:51 +02:00
Peter Powell
e6d245a3e8
Replace the configure templating system with something better.
...
A large amount of this code can be removed when buildtool is done
as we will not need to worry about the differences between BSD and
GNU Make.
2014-05-23 14:13:51 +02:00
Attila Molnar
573c3e0ecc
Document the Membership and the Invitation class
2014-05-06 15:13:30 +02:00
Attila Molnar
5b3bc00fb4
Document parameters and return value for the OnNamesListItem() hook
2014-04-20 14:12:59 +02:00
Attila Molnar
5ebb49de65
Change the OnNamesListItem() hook to return ModResult
...
Return MOD_RES_DENY to exclude the user from the NAMES list
2014-04-20 14:05:21 +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
0c476dd0ca
Avoid double Membership lookup in Channel::UserList()
...
The user is always inside if UserList() is called from ForceJoin() and the HasUser() result obtained in the /NAMES handler can be reused
2014-04-09 15:02:10 +02:00
Attila Molnar
45ca2908a3
Fix accessibility in intrusive_list_node and return value of operator-- in intrusive_list
2014-04-07 13:59: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
025aa693fd
Convert the global list of dynamic reference pointers to an intrusively linked list
2014-03-28 12:20:39 +01:00
Attila Molnar
8f31b0cf2a
Change storage of UserManager::all_opers to be a vector
2014-03-25 11:03:29 +01:00