Peter Powell
c5bc6c1cf5
Replace some C string operations with the + operator.
2013-06-06 01:45:04 +01:00
Peter Powell
6f54bc95a4
Use InspIRCd::Format instead of snprintf().
2013-06-06 01:45:04 +01:00
Peter Powell
bbeb5ea386
Use iostream instead of C-style file operations.
2013-06-06 01:44:57 +01:00
Peter Powell
cc79342f50
Compare to ServerLimits::MaxLine instead of MAXBUF.
2013-06-06 01:06:47 +01:00
Peter Powell
047e291797
Reserve ServerLimits::MaxLine instead of MAXBUF.
2013-06-06 00:41:07 +01:00
Peter Powell
7dfcffd685
Start to replace MAXBUF with <limits:maxline>.
2013-06-06 00:41:06 +01:00
attilamolnar
d9d99cd02d
Merge insp20
2013-06-06 01:07:22 +02:00
attilamolnar
e0ff94b310
Release 2.0.13
v2.0.13
2013-06-05 23:28:45 +02:00
attilamolnar
d87bfc2778
Remove unnecessary string copies and dead code
2013-06-05 23:11:50 +02:00
attilamolnar
f4d8359382
Report the full GnuTLS version in configure
...
Fix incorrect version being reported when the minor version is longer than one digit (2.10.x)
2013-06-05 22:40:09 +02:00
attilamolnar
f07eda62da
m_spanningtree Fix FIDENT routing
...
A new FIDENT was broadcast for each incoming FIDENT causing harmless but unnecessary server to server traffic
2013-06-04 22:16:15 +02:00
attilamolnar
fc198fffe1
Fix inet_pton on Windows with IPv6 addresses
...
Code from Anope win32/socket.cpp by @Adam-
2013-06-04 21:43:29 +02:00
attilamolnar
9b08c60495
m_pgsql Same fix as 0e09600a431d0e0f2cde6457e088d84caf6d6f5d
2013-06-04 21:38:03 +02:00
attilamolnar
8a06d54076
Refactor Channel::UserList() to use std::string
2013-06-04 02:10:16 +02:00
attilamolnar
8e8a4df17e
Remove the now unused Channel::RemoveAllPrefixes() and CountInvisible()
2013-06-04 02:06:50 +02:00
attilamolnar
2ac7d154d9
Reduce User* -> Membership* lookups on part and kick
2013-06-04 02:06:50 +02:00
attilamolnar
6db9244585
Channel::KickUser() and cmd_kick changes
...
- Remove uline checks from KickUser()
- Disallow the kick if done by a local user and the victim is ulined in cmd_kick
- Remove call to RemoveAllPrefixes() as it has no additional effect, the Membership object containing the prefixes is destroyed soon after the call
2013-06-04 01:57:35 +02:00
attilamolnar
3a01b55a11
Remove NULL checks from various Channel functions
...
Passing NULL to these functions are not permitted and must be avoided by the caller
2013-06-04 01:49:14 +02:00
Daniel Vassdal
263c2efd96
Added option for using TCP_DEFER_ACCEPT. Prevents the connection from being handed over to the daemon before data is ready from the client.
2013-06-03 18:45:46 +02:00
attilamolnar
ca4c4a6798
Route WALLOPS like a regular command, remove OnWallops hook
2013-06-02 18:05:01 +02:00
Adam
94c248f9da
Merge pull request #550 from Adam-/master+sepstream
...
Rewrote sepstream and tokenstream to be less ugly
2013-06-01 19:05:51 -07:00
Adam
fdac3263c0
s/seperator/separator/g
2013-06-02 02:45:53 +02:00
Adam
01ac5148e9
Rewrote sepstream and tokenstream to be less ugly
2013-06-02 02:45:53 +02:00
attilamolnar
81fce393e9
ISupportManager: Tidy-up, expand comments
2013-06-02 00:34:15 +02:00
attilamolnar
b01dc3cb86
Move a few trivial functions into headers
2013-06-02 00:28:55 +02:00
attilamolnar
3e704abc5a
m_devoice Remove FindChan() and HasUser() checks, these are done when parsing the mode change
2013-06-02 00:16:01 +02:00
attilamolnar
d16a455400
Watch mode names with ModeWatchers instead of mode letters
2013-06-01 23:41:42 +02:00
attilamolnar
ca838821e7
Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()
2013-06-01 23:41:42 +02:00
attilamolnar
40c5b25db4
Remove #define MAXPARAMETERS and "MAXPARA" 005 token
2013-06-01 23:00:55 +02:00
attilamolnar
397dea782f
CommandParser::ProcessCommand() and ProcessBuffer() cleanup
...
- Change return types to void
- Use a pointer to the command handler instead of an iterator
2013-06-01 22:57:59 +02:00
attilamolnar
84b40a76b8
Improve command parser logic when there are more params than Command::max_params
2013-06-01 22:55:37 +02:00
attilamolnar
dac63207aa
Remove (non-functional) total_bytes counter from Command
2013-06-01 22:52:02 +02:00
Attila Molnar
a15d4c391b
Merge pull request #551 from SaberUK/master+unused-configure
...
Remove unused code from configure.
2013-06-01 12:53:25 -07:00
Peter Powell
d9c1809b26
Remove unused code from configure.
2013-06-01 20:33:13 +01:00
attilamolnar
c8ef121681
cmd_who Hide +i users when listing users on a server and hidewhois is off
...
Fixes #547 reported by @RawrDragon
2013-06-01 20:53:45 +02:00
attilamolnar
0e09600a43
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
2013-06-01 20:53:32 +02:00
attilamolnar
c70a6b5699
m_userip Allow querying own IP for non-opers, require the users/auspex priv for opers to query the IP of others
...
Issue #513 suggested by @CuleX
2013-06-01 20:42:30 +02:00
attilamolnar
3406c7234a
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
2013-05-27 01:07:30 +02:00
attilamolnar
9bb24d3f45
Deduplicate RemoveMode() implementations
...
The default (core) implementation can now remove prefix modes
The modestacker parameter is now mandatory
2013-05-27 01:07:29 +02:00
Peter Powell
244a65e855
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.
2013-05-27 00:15:30 +02:00
attilamolnar
ee641f3f22
LogManager cleanup
2013-05-24 18:38:55 +02:00
attilamolnar
1911857e3a
Cache mode list that is sent in the 004 numeric
...
Deduplicate UserModeList(), ChannelModeList() and ParaModeList() code
2013-05-24 18:22:25 +02:00
attilamolnar
b8c1db4e90
Remove dead ModeParser code
2013-05-24 18:20:58 +02:00
attilamolnar
4801080b51
m_nicklock Fix wrong hook in SetPriority()
2013-05-23 20:19:16 +02:00
attilamolnar
7e990d1af8
Update authors
2013-05-23 20:12:09 +02:00
Adam
f2dcf19923
Add a va_copy define for Windows
2013-05-23 13:26:11 -04:00
Adam
da69771af6
Some systems with whacky va_list implementations do undefined stuff when vsnprintf is called multiple times with the same list, so have InspIRCd::Format va_copy the list before each call
2013-05-23 13:19:12 -04:00
Adam
27f046550c
Change CacheRefreshTimer tick time back to 5 minutes
2013-05-23 12:22:54 -04:00
attilamolnar
8d172c077e
m_mysql Fix crash on rehash when the database tags have been changed in the config
2013-05-22 22:29:15 +02:00
Attila Molnar
b36ce84c7d
Merge pull request #545 from SaberUK/master+logging-cleanup
...
Clean up the logging system (part 1 of 2).
2013-05-21 17:11:46 -07:00