Attila Molnar
5303501b93
Add a ModeParser::FindMode() overload that takes a mode name and a mode type
2014-02-20 13:34:27 +01:00
Attila Molnar
f66d05dbda
Create a name -> ModeHandler* map
2014-02-20 13:20:21 +01:00
Attila Molnar
7bcb703bca
Replace ModeMasks with a two-dimensional array
2014-02-18 13:47:10 +01:00
Attila Molnar
8f901b33a8
Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to ModeType
2014-02-18 13:41:01 +01:00
Attila Molnar
0556720b55
Add ParamModeBase and ParamMode, change all parameter modes to inherit from ParamMode
...
- Type of the extension used to store data is a template parameter
- The extension is automatically unset when the mode is unset
- Handlers inheriting from ParamMode have to provide OnSet() and SerializeParam(); may optionally provide OnUnset()
- Transparently handle the case when OnSet() modifies the mode parameter
- Remove Channel::custom_mode_params map; ask the mode handlers to serialize their parameters instead
2014-02-15 14:38:24 +01:00
Attila Molnar
88baaf9e68
Add ModeHandler::IsParameterMode() and MC_PARAM
2014-02-15 13:51:35 +01:00
Attila Molnar
8bdc2313a6
Move GetAllPrefixChars() from Channel to Membership
2014-02-14 12:16:31 +01:00
Attila Molnar
74ccc28da3
Move GetPrefixChar() from Channel to Membership
2014-02-14 12:15:00 +01:00
Attila Molnar
51b5f06c48
Return a Membership* from get_first_visible_channel() in cmd_who and pass that to modules
2014-02-14 12:00:06 +01:00
Peter Powell
3111038011
Remove support for advertising the SSL ports in RPL_ISUPPORT.
...
- No other IRC servers implement this.
- No IRC clients I can find support this.
2014-02-13 18:10:40 +01:00
Adam
e91c34ae36
Remove redundant null pointer check from m_ldapauth
2014-02-13 11:07:23 +01:00
Adam
a4f222ee1b
Wait for the manager bind to come back before sending search in LDAP modules
2014-02-13 11:07:10 +01:00
Attila Molnar
c77cc4f737
m_operjoin Remove duplicated code
2014-02-11 14:08:11 +01:00
Attila Molnar
87ce845b68
m_sqlauth Allow the client certificate fingerprint to be used in the SQL query
...
Idea by @m4z
2014-02-11 14:00:05 +01:00
Attila Molnar
6fb7507c58
Replace DummyExtItem with a flag in Extensible
2014-02-10 13:56:14 +01:00
Attila Molnar
034488fc4a
Store the EventHandler* in the kevent/epoll_event/portev struct
...
This removes the need to call GetRef() for every socket in DispatchEvents()
2014-02-09 17:31:57 +01:00
Attila Molnar
4ec65c6231
Call DelFd() and SetFd(-1) from SocketEngine::Close(EventHandler*)
2014-02-09 17:17:04 +01:00
Adam
080bb7c0b3
Queue changes in socketengine_kqueue and submit them as we poll for new events
2014-02-09 17:10:21 +01:00
Attila Molnar
efe77ba63b
Change all socketengine methods to be static
2014-02-08 23:01:44 +01:00
Attila Molnar
689996cb88
Move socketengine stats into a new class
2014-02-08 22:40:30 +01:00
Attila Molnar
aea38a0dd7
Update SocketEngine::CurrentSetSize in AddFdRef()/DelFdRef()
2014-02-08 22:34:11 +01:00
Attila Molnar
b01820c079
Rename SocketEngine::AddFd() and DelFd() to AddFdRef() and DelFdRef()
2014-02-08 22:25:06 +01:00
Attila Molnar
dd43a49fc4
Move variables in socketengines
...
Move timespec to DispatchEvents() in kqueue, there is no reason for it to be a member variable
2014-02-08 22:20:05 +01:00
Attila Molnar
ed6176383e
Replace SocketEngine::GetName() with INSPIRCD_SOCKETENGINE_NAME define
2014-02-08 13:16:31 +01:00
Attila Molnar
2cf4b614e6
Change SocketEngine functions that do not require an instance to be static
2014-02-08 13:10:09 +01:00
Attila Molnar
5b6ae9c542
Only compile the testsuite if INSPIRCD_ENABLE_TESTSUITE is defined
2014-02-07 18:21:01 +01:00
Thiago Crepaldi
4ed0292914
m_ldapauth.cpp: Allow multiple patterns for users to bypass LDAP auth
2014-02-07 18:10:20 +01:00
Peter Powell
9dd4108273
Convert irc::stringjoiner to be a method instead of a class.
...
Add separator parameter
2014-02-06 23:11:51 +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
Attila Molnar
13edc2e8eb
m_cap Instead of using case insensitive compare convert the subcommand to uppercase
...
This way if we send back the subcommand it will be in uppercase even if the client sent it in lowercase
2014-02-06 23:00:18 +01:00
Attila Molnar
a8b986bd78
Merge pull request #766 from SaberUK/master+rebuild-fix
...
Don't force a rebuild after doing a Git commit.
2014-02-06 22:57:21 +01:00
Peter Powell
1f63279777
Don't force a rebuild after doing a Git commit.
...
Thanks to w00t for pointing out the cause of this.
2014-02-06 18:27:08 +00:00
Attila Molnar
557d4ba922
socketengine_kqueue Remove dead code
2014-02-05 18:05:07 +01:00
Attila Molnar
c9ee23a0fd
socketengine_epoll Remove needless initialization of epoll_event when removing an fd
2014-02-05 18:03:10 +01:00
Attila Molnar
594b9e031c
Fix oversight in 3752b3f59d5216d7dc6221a361efc76b9ad2273d
2014-02-05 17:51:03 +01:00
Adam
da812566e8
Coding style changes in socketengines
2014-02-04 22:44:20 +01:00
Adam
3752b3f59d
New socketengine stuff:
...
Use vectors that grow as necessary instead of mass allocating everything at once
Rework poll engine logic to make sense
2014-02-04 22:39:12 +01:00
Attila Molnar
d7164e521b
Change type of SocketEngine::CurrentSetSize to size_t from int
2014-02-04 21:10:45 +01:00
Adam
178defb45e
Fix ping timeout message seconds vs second
2014-02-04 06:37:21 -05:00
Attila Molnar
3fc88ba7c9
Remove a few unnecessary .c_str() calls
2014-01-31 14:35:13 +01:00
Attila Molnar
98ef89c392
Remove some dead code
2014-01-31 14:27:32 +01:00
Attila Molnar
2e8c2a6a5f
Document new delayed join feature of m_conn_join
2014-01-30 22:18:40 +01:00
Attila Molnar
9781579ae5
m_conn_join Read default settings in ReadConfig()
2014-01-30 22:14:33 +01:00
Daniel Vassdal
9e1399c128
m_conn_join: Allow time-delayed joins
2014-01-30 22:12:18 +01:00
Daniel Vassdal
86a7fa3a06
m_conn_join: Fixed indentation
2014-01-30 22:06:10 +01:00
Attila Molnar
5ac1ffce11
Allow Timers to delete themselves in Tick()
2014-01-30 21:44:51 +01:00
Adam
407f10664a
m_spanningtree Rewrite /map
2014-01-28 15:55:19 +01:00
Attila Molnar
adb5ab48a2
m_tline Minor improvements
...
- Replace floats with integers
- Use size() instead of counting elements
- Use WriteNotice()
2014-01-27 17:01:05 +01:00
Attila Molnar
764bf12c10
m_alias Remove duplicate checks
2014-01-27 16:37:40 +01:00
Attila Molnar
3d72f37f26
m_alias Use equal_range() when searching for aliases
2014-01-27 16:33:27 +01:00