| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently on invalid modes we do a combination of different things:
1. Send a custom mode-specific numeric (which often collides with
other modes).
2. Send a server notice.
3. Do absolutely nothing.
This new numeric is a generic way of handling invalid parameters
when setting a mode that avoids all of the mistakes of the previous
behaviour.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Move all message-related types to their own header to make moving
them to a cross-module events easier.
- Rename OnUserMessage to OnUserPostMessage.
- Rename OnText to OnUserMessage.
- Replace the dest, target_type, and status parameters with the
MessageTarget class.
- Replace the text, exempt_list, and msgtype parameters with the
MessageDetails struct.
- Add echooriginal and originaltext to the MessageDetails struct
to allow spam filtering to not be broken by cap echo-message.
|
| |
|
|
| |
Closes #1452.
|
| | |
|
| |
|
|
| |
Closes #1235.
|
| |
|
|
| |
GCCs warnings for this are much better than Clangs.
|
| | |
|
| |
|
|
| |
substr() returns a new string while erase() and assign() modify the existing one
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
|
|
| |
and on rehash
This eliminates the need for calling OnRehash() in init()
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
with ModeHandlers, part 1
|
| |
|
|
| |
requiring mode handlers to do it
|
| |
|
|
|
|
| |
OnUserMessage and OnUserPreMessage
All modules (except m_nonotice) that perform filtering on messages have common logic for handling PRIVMSGs and NOTICEs and most of them run the exact same code in both cases
|
| |
|
|
|
| |
- Remove virtual keyword from a ton of methods which don't need it.
- Add override keyword to a ton of methods which do need it.
|
| |
|
|
|
|
| |
* 'const char*' to 'const std::string&'.
* snprintf to std::string concatenation.
* Replace duplicated OneOfMatches with InspIRCd::MatchMask.
|
| |
|
|
|
|
|
|
|
| |
This allows us to send a server notice to a user without worrying
about whether they are registered or not.
If a user receives a server notice and they are not registered
then the nickname field will contain an asterisk instead of their
nick name.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
|
| | |
|
| |
|
|
| |
modes are deleted automatically on unload
|
| | |
|
| | |
|
| |
|
|
| |
before playing back history, don't playback to remote users
|
| | |
|
| | |
|
| |
|
|
|
|
| |
history
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12488 e03df62e-2008-0410-955e-edbf42e46eb7
|
| |
|
|
| |
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12466 e03df62e-2008-0410-955e-edbf42e46eb7
|
| |
|
|
|
|
|
| |
While irssi is currently able to show the lines sent prior to join,
it is better for this module to work on all clients without modification.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12407 e03df62e-2008-0410-955e-edbf42e46eb7
|
| |
|
|
|
|
| |
CAPAB checking)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12263 e03df62e-2008-0410-955e-edbf42e46eb7
|
| |
|
|
| |
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
|
| |
|
|
| |
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11898 e03df62e-2008-0410-955e-edbf42e46eb7
|
| |
|
|
| |
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11897 e03df62e-2008-0410-955e-edbf42e46eb7
|
|
|
channel join
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11895 e03df62e-2008-0410-955e-edbf42e46eb7
|