11945 Commits

Author SHA1 Message Date
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
3323226c38 Increment serverstats::Collisions when a collision is handled, not when a module denies a nick change 2014-06-20 16:04:21 +02:00
Attila Molnar
7b0f307298 m_spanningtree Share server description updates via SINFO desc 2014-06-17 13:48:50 +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
daa907cb09 m_spanningtree Remove server-to-server VERSION handler 2014-06-17 13:41:21 +02:00
Attila Molnar
c3aa3125dd m_spanningtree Translate SINFO version to VERSION and vice versa for 1202 protocol servers 2014-06-17 13:39:08 +02:00
Attila Molnar
92bc6a513b m_spanningtree Exchange public server version strings via SINFO instead of VERSION 2014-06-17 13:36:10 +02:00
Attila Molnar
18c918cc88 m_spanningtree Show the full version string of servers to opers
Issue #637, suggested by @CuleX
2014-06-17 13:32:00 +02:00
Attila Molnar
eb5e3b356c m_spanningtree Send and receive full version strings via SINFO 2014-06-17 13:28:19 +02:00
Attila Molnar
9928fca424 m_spanningtree Add a field to TreeServer for storing full version strings 2014-06-17 13:27:21 +02:00
Attila Molnar
7e47e41841 m_spanningtree Add server-to-server SINFO command handler and builder
Don't send SINFO to 1202 protocol servers
2014-06-17 13:25:06 +02:00
Attila Molnar
d256e357ee m_spanningtree Add TreeSocket::SendServerInfo() that sends all additional data about a server 2014-06-17 13:20:57 +02:00
Attila Molnar
82435b6fa8 Kill needless #includes in source files 2014-06-14 15:30:14 +02:00
Attila Molnar
b9e323b2c3 Remove unused #define ERROR -1 2014-06-14 15:14:46 +02:00
Attila Molnar
06c6e0858e m_spanningtree Remove declaration for nonexistent function: OnLine() 2014-06-14 15:14:05 +02:00
Attila Molnar
001cd6b11e m_spanningtree Use vector back() where it makes sense 2014-06-14 15:12:13 +02:00
Attila Molnar
60245f0447 m_spanningtree Initialize boolean member variables in the constructor of the module 2014-06-14 15:07:19 +02:00
Attila Molnar
978233e007 m_spanningtree Initialize TreeServer::UserCount for TreeRoot in its constructor 2014-06-14 15:03:48 +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
6193243e4b m_spanningtree Change allocation of the specialized ProtocolInterface to be physically part of ModuleSpanningTree 2014-06-13 15:57:14 +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
7f878af39e Use CommandParser::GetHandler() in ServerConfig::ApplyDisabledCommands() 2014-06-13 15:33:10 +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
c7759c765c m_spanningtree Explicitly specify the routing for RESYNC as the one inherited from ServerCommand doesn't suit it
Command::GetRouting() defaulted to local only when RESYNC was added, but
ServerCommand overrides it.
2014-06-12 16:20:31 +02:00
Attila Molnar
17cd4ada26 m_spanningtree Strip membership id from KICKs sent to 1202 protocol servers 2014-06-11 15:13:58 +02:00
Attila Molnar
ed11e05d5b Send the membership id when kicking a remote user and drop KICKs with mismatching membership ids
This fixes the desync happening when a PART+JOIN crosses a KICK targetting
the same user.
2014-06-11 15:07:27 +02:00
Attila Molnar
91a069642b m_spanningtree Strip membership ids from FJOINs sent to 1202 protocol servers 2014-06-11 14:57:25 +02:00
Attila Molnar
da20866cee m_spanningtree Send and parse FJOINs with membership ids 2014-06-11 14:46:53 +02:00
Attila Molnar
612629df8b m_spanningtree Add CmdBuilder::push_raw_int() 2014-06-11 14:41:31 +02:00
Attila Molnar
3515d58c03 m_spanningtree Use the FJOIN builder when a channel is created 2014-06-11 14:40:18 +02:00
Attila Molnar
ce82bc069d m_spanningtree Add CmdBuilder specialization for FJOIN 2014-06-11 14:37:42 +02:00
Attila Molnar
f3ebd00f11 m_spanningtree Send, parse and translate IJOINs with membership ids 2014-06-11 14:30:17 +02:00
Attila Molnar
c8f92d97c2 m_spanningtree Assign an id to new Memberships 2014-06-11 14:15:40 +02:00
Attila Molnar
84e358da3c m_spanningtree Initialize membership ids on load 2014-06-11 14:08:15 +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
ad6a028095 Add channel TS to server-to-server INVITE to detect and drop unauthorized invites
The syntax of the server-to-server INVITE command changes from
:<source> INVITE <target> <channel> [<expire>]
to
:<source> INVITE <target> <channel> <chants> [<expire>]
2014-06-10 17:37:16 +02:00
Attila Molnar
a638828464 m_spanningtree Allow callers of InsertCurrentChannelTS() to customize positions 2014-06-10 17:36:19 +02:00
Attila Molnar
252f2b4f2b cmd_kick Assign a value to the kick reason string more reasonably 2014-06-10 17:22:02 +02:00
Attila Molnar
b6da8d9e22 Use the iterator version of Channel::KickUser() in a few places 2014-06-10 17:19:27 +02:00