aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
Commit message (Expand)AuthorAgeFilesLines
* Use iostream instead of C-style file operations.Gravatar Peter Powell2013-06-062-105/+47
* Compare to ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-064-4/+4
* Reserve ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-063-3/+3
* Merge insp20Gravatar attilamolnar2013-06-0623-97/+152
|\
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-0511-43/+15
| * m_spanningtree Fix FIDENT routing•••A new FIDENT was broadcast for each incoming FIDENT causing harmless but unnecessary server to server traffic Gravatar attilamolnar2013-06-041-2/+1
| * m_pgsql Same fix as 0e09600a431d0e0f2cde6457e088d84caf6d6f5dGravatar attilamolnar2013-06-041-8/+8
| * m_mysql Fix escaping strings longer than MAXBUF/2•••Quotes from the documentation: "You must allocate the to buffer to be at least length*2+1 bytes long. (In the worst case, each character may need to be encoded as using two bytes, and you need room for the terminating null byte.)" "The return value is the length of the encoded string, not including the terminating null character." http://dev.mysql.com/doc/refman/5.6/en/mysql-real-escape-string.html Gravatar attilamolnar2013-06-011-6/+12
| * m_userip Allow querying own IP for non-opers, require the users/auspex priv f...•••Issue #513 suggested by @CuleX Gravatar attilamolnar2013-06-011-2/+19
| * m_nicklock Fix wrong hook in SetPriority()Gravatar attilamolnar2013-05-231-1/+1
| * m_mysql Fix crash on rehash when the database tags have been changed in the c...Gravatar attilamolnar2013-05-221-5/+6
| * m_channames Fix iteration in ValidateChans()•••Spotted by @Adam- Gravatar attilamolnar2013-05-181-2/+10
| * m_httpd_acl Reread config on rehashGravatar attilamolnar2013-05-181-3/+3
| * m_geoip Set cc in OnSetConnectClass to the newly created string if it was NULLGravatar attilamolnar2013-05-181-2/+3
| * Fix m_randquote with 0 quotesGravatar Adam2013-05-161-6/+7
| * Remove unused variables, avoid copies where possible, check empty() instead o...•••Most of these were detected by cppcheck Gravatar attilamolnar2013-05-167-8/+7
| * Fix an extremely low risk crash bug in m_connectban.Gravatar Peter Powell2013-05-061-4/+5
| * m_ssl_gnutls Call gnutls_transport_set_errno() on Windows onlyGravatar attilamolnar2013-05-021-0/+14
| * Fix gnutls (again) on Windows by using gnutls_transport_set_errno()Gravatar Adam2013-05-021-42/+56
* | Reduce User* -> Membership* lookups on part and kickGravatar attilamolnar2013-06-041-4/+1
* | Remove NULL checks from various Channel functions•••Passing NULL to these functions are not permitted and must be avoided by the caller Gravatar attilamolnar2013-06-041-1/+1
* | Route WALLOPS like a regular command, remove OnWallops hookGravatar attilamolnar2013-06-023-13/+1
* | m_devoice Remove FindChan() and HasUser() checks, these are done when parsing...Gravatar attilamolnar2013-06-021-12/+6
* | Watch mode names with ModeWatchers instead of mode lettersGravatar attilamolnar2013-06-013-32/+18
* | Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()Gravatar attilamolnar2013-06-013-5/+5
* | Remove #define MAXPARAMETERS and "MAXPARA" 005 tokenGravatar attilamolnar2013-06-011-1/+1
* | Simplify user mode removal via ModeHandler::RemoveMode()•••The function does not need to be virtual because the core can remove any user mode using the default logic The optional modestack parameter was always NULL, so remove it Gravatar attilamolnar2013-05-272-8/+0
* | Deduplicate RemoveMode() implementations•••The default (core) implementation can now remove prefix modes The modestacker parameter is now mandatory Gravatar attilamolnar2013-05-273-61/+1
* | Clean up the FileReader class and all of the modules that use it.•••- Modules which use this class will now have to catch a CoreException when opening files if they wish to ignore the failed loading of a file. - m_randquote has been cleaned up massively and the RANDQUOTE command has been removed as it was pretty much useless. Gravatar Peter Powell2013-05-273-58/+29
* | Change CacheRefreshTimer tick time back to 5 minutesGravatar Adam2013-05-231-1/+1
* | Merge pull request #545 from SaberUK/master+logging-cleanup•••Clean up the logging system (part 1 of 2).Gravatar Attila Molnar2013-05-2130-88/+88
|\ \
| * | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-1930-88/+88
* | | Convert XLine::Displayable to return a std::string.Gravatar Peter Powell2013-05-216-18/+25
* | | Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to On...•••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 Gravatar attilamolnar2013-05-2023-171/+51
* | | Replaced vsnprintf with VAFORMAT pretty much everywhere.Gravatar Daniel Vassdal2013-05-181-6/+2
|/ /
* | Change the signature of User::ForceNickChange() to accept const std::string& ...Gravatar attilamolnar2013-05-185-7/+7
* | Get rid of the NICKForced extension•••Don't run OnUserPreNick when the nick change is forced Gravatar attilamolnar2013-05-183-10/+0
* | Deduplicate hex string creation codeGravatar attilamolnar2013-05-182-2/+2
* | Merge pull request #543 from SaberUK/master+sizeparam-removal•••Remove the size argument from IsChannel and IsNick.Gravatar Attila Molnar2013-05-1813-26/+26
|\ \
| * | Remove the size argument from IsChannel and IsNick.•••There was only one case (which was probably an error) where these methods were not set to their ServerLimits value. Gravatar Peter Powell2013-05-1813-26/+26
* | | Purge the old chanlog code from the module file.Gravatar Peter Powell2013-05-181-54/+0
|/ /
* | m_joinflood Make the code friendlier, unset +j when the module is unloaded•••See 21c3232b8e0bb41727f2d65a0b2d5304587cf6be and fae560cddc389b88c9cd34afdccf9035f4d11c5b Gravatar attilamolnar2013-05-161-89/+41
* | Allow spaces (and more) in oper types•••The spaces are converted to '_' characters in OPERTYPE for 2.0 servers Issue #533 suggested by @ankitkv Gravatar attilamolnar2013-05-166-6/+21
* | Tidy up keywords on module methods.•••- 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. Gravatar Peter Powell2013-05-15160-790/+789
* | Replace some C-isms with C++-isms.•••* 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask. Gravatar Peter Powell2013-05-1510-88/+20
* | Merge pull request #523 from SaberUK/master+server-notice•••Add method for writing server notices.Gravatar Attila Molnar2013-05-1451-133/+127
|\ \
| * | Add method for writing server notices.•••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. Gravatar Peter Powell2013-05-1451-133/+127
* | | m_spanningtree UID handler: Fix parsing user modes•••Spotted by @ShutterQuick Issue #532 Gravatar attilamolnar2013-05-141-3/+5
|/ /
* | Merge insp20Gravatar attilamolnar2013-04-2813-122/+312
|\|
| * m_ssl_gnutls Add ability to load DH params from file•••This greatly decreases the load time because the DH parameters no longer have to be (re)generated each time the module is loaded Gravatar attilamolnar2013-04-241-2/+23