11237 Commits

Author SHA1 Message Date
Peter Powell
a0eeadff23 Replace a GNUmake idiom with the portable equivalent. 2012-12-25 18:39:04 +01:00
Peter Powell
020eeeabd8 Include <list> in base.h to prevent build errors on OpenBSD. 2012-12-25 18:39:03 +01:00
Peter Powell
8540f6af60 Fix the poll socket engine on BSD's other than FreeBSD. 2012-12-25 18:39:03 +01:00
Peter Powell
618d13196d OpenBSD does not have KERN_MAXFILESPERPROC. 2012-12-25 18:39:03 +01:00
attilamolnar
5a378e1b08 m_ldapoper Fix typo spotted by @lordsith49
Fixes #392
2012-12-25 18:26:47 +01:00
attilamolnar
401e01feb0 Fix errors in socketengine_ports so it compiles on Solaris
Thanks to fraggeln for reporting and testing
2012-12-21 18:26:22 +01:00
Peter Powell
092f9d7ec1 Fix property list arguments. 2012-12-21 01:47:12 +01:00
Adam
32208f45fe Fixed m_ssl_gnutls build on Windows; gnutls.h uses ssize_t which is defined in gcrypt.h 2012-12-17 06:02:09 -05:00
attilamolnar
d1cc59fa4b Release 2.0.10 v2.0.10 2012-12-16 16:30:58 +01:00
attilamolnar
0383c3dc7a m_callerid Fix memory leak in CallerIDExtInfo::free() 2012-12-16 16:08:39 +01:00
attilamolnar
d00914ed6f Add a flag to Command that controls whether an empty last parameter is allowed or not 2012-12-15 21:17:06 +01:00
attilamolnar
ab65f7902f m_ident Reject invalid and error replies 2012-12-15 19:47:47 +01:00
attilamolnar
e3e3a35899 Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a target nickname
If a SID was passed as the target user parameter or when it's an unregistered user reply with the "no such nick" (or the moral equivalent) message
2012-12-15 19:47:40 +01:00
attilamolnar
71d53e4883 Remove ServerLimits::Finalise(), it's completely wrong
Truncate <limits:identmax>+1 long idents in User::ChangeIdent()
2012-12-09 18:12:09 +01:00
attilamolnar
e3efb6a0f6 Fix unsafe iteration in DelMode() when unloading m_permchannels 2012-12-08 16:24:09 +01:00
Peter Powell
0a0aa94537 Fix #380 on BSD make. 2012-12-07 18:38:34 +01:00
Attila Molnar
7f582ed98c Merge pull request #380 from SaberUK/insp20+fix-clang-warning
Fix invalid argument warnings on clang.
2012-12-07 07:00:11 -08:00
Peter Powell
c468e9b368 Fix invalid argument warnings on clang. 2012-12-07 03:32:50 +00:00
attilamolnar
391ec2c499 m_svshold Fix crash when called with 2 params, only triggerable by u-lines 2012-12-05 21:49:47 +01:00
attilamolnar
a969c1e440 m_cban, m_rline, m_shun Don't broadcast when user is a local user
spanningtree sends an ADDLINE in this case
2012-12-05 21:49:46 +01:00
attilamolnar
73074b0a78 Change a few signed counter variables to unsigned so they roll over later 2012-12-05 21:49:39 +01:00
attilamolnar
850563d175 Fix expired xlines being treated as live ones in XLineManager::AddLine()
This fixes ADDLINEs not being propagated and /gline etc. failing for already existing but expired xlines

Special thanks to @JDowny (TinMan) for his detailed report and cooperation that made this fix possible

Fixes #306 reported by @TurkDesk
Fixes #379 reported by @JDowny
2012-12-05 21:47:54 +01:00
attilamolnar
934bd8209b Unbreak m_geoip 2012-12-04 16:26:34 +01:00
attilamolnar
a87c56faea Fix thread handle leak in StartServiceThread() 2012-12-03 21:29:24 +01:00
attilamolnar
4451fd13a1 Fix broken RetrieveLastError()
- FORMAT_MESSAGE_IGNORE_INSERTS flag wasn't used and we never pass insertion parameters, this could cause FormatMessage() to fail
- The return value of FormatMessage() wasn't checked, if it returned zero (failure) then RetrieveLastError() returned garbage if err[] wasn't initialized previously
2012-12-03 21:28:38 +01:00
attilamolnar
a99f41c3eb Fix typos in ebdaf368e137fc933e648ee88a08a4f83e796f87 2012-12-03 21:24:59 +01:00
attilamolnar
d86426f359 Properly shut down stdin
Replace hardcoded ints
2012-12-03 17:51:52 +01:00
attilamolnar
01a1d67dd1 m_remove Fix potential desync caused by committing the PART before getting acknowledgement from the target server 2012-12-02 23:07:13 +01:00
attilamolnar
8095fb6079 Fix DLLManager leak when an exception is thrown in init()
This also caused the dlopen()'d library to stay open forever
2012-12-02 20:34:33 +01:00
attilamolnar
eea9343393 Throw an exception when attempting to register an extension with a name that already exists
Previously this silently failed
2012-12-02 19:43:20 +01:00
attilamolnar
fd20068a0b Register a few extensions that weren't registered 2012-12-02 19:40:26 +01:00
attilamolnar
349106f3f9 Register all commands, modes and extensions using AddService()
AddService() throws an exception if an item cannot be registered, modules no longer need to worry about AddMode() etc. failing
2012-12-02 19:40:17 +01:00
attilamolnar
84a1569cd6 Dynamically determine the size of the eventlist[] passed to Attach()
m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
2012-12-02 19:40:00 +01:00
attilamolnar
ac7defcd3e Attach to events and register services in init() 2012-12-02 19:39:46 +01:00
Attila Molnar
6dd61235fc Merge pull request #376 from SaberUK/insp20+fix-clean
Fix the list of files to be removed by make.
2012-12-02 10:20:03 -08:00
Peter Powell
66652af628 Fix the list of files to be removed by make. 2012-12-02 17:58:13 +00:00
attilamolnar
74b05d5500 Make LocalUserList an std::list 2012-11-29 23:41:22 +01:00
attilamolnar
a589577b68 Add a typedef for LocalUserList 2012-11-29 23:41:22 +01:00
attilamolnar
83db3dc06a m_cgiirc Fix wrong announcement when the host in WEBIRC is too long 2012-11-29 21:12:13 +01:00
attilamolnar
d53f0956ab m_cgiirc Don't apply resolved host or send notifications when the user is quitting (matched a line) 2012-11-29 20:26:17 +01:00
attilamolnar
129dfe60ae m_cgiirc Don't resolve IPs when <performance:nouserdns> is true 2012-11-29 20:26:17 +01:00
attilamolnar
6e55cd2003 m_cgiirc De-duplicate code, recheck elines after ip/host changes
Fixes #350 reported by @MistrX

New functions:
- RecheckElineAndClass()
- ChangeIP() - decreases clone counts for a user, calls SetUserIP, increases clone counts after the new ip is applied
- HandleIdentOrPass() - common code extracted from CheckIdent() and CheckPass()
2012-11-29 20:26:17 +01:00
attilamolnar
9eb655dbdd m_cgiirc Remove dead code, warn when a <cgihost> block has an invalid type value, misc. cleanup 2012-11-29 20:26:17 +01:00
attilamolnar
f1a122b4ee m_dnsbl Add usednsbl option to connect classes
Don't touch users in classes where it's off
2012-11-29 20:26:00 +01:00
attilamolnar
20ea635c9f Reorder local user initialization steps
OnSetUserIP hook now runs after the user has a connect class and the g/k/z lines were checked (ip only, no host at that point)
Fixes #360 reported by @JDowny
Allows #336
2012-11-29 20:26:00 +01:00
attilamolnar
b4034e2231 cmd_rehash, m_spanningtree Fix REHASH messages duplicating at each hop
Fixes #375 reported by @JDowny
2012-11-29 16:25:36 +01:00
Attila Molnar
53f027a290 Merge pull request #374 from rburchell/ldapauth_vhosts
Ldapauth vhosts
2012-11-29 06:47:32 -08:00
Robin Burchell
aebe6cfd64 ldapauth: register both extensions 2012-11-29 10:07:07 +01:00
Robin Burchell
50ea223063 ldapauth: RAII returned ldap message.
This ensures it is always freed, and coincidentally fixes freeing in the case of
LDAP errors.
2012-11-29 10:07:05 +01:00
Robin Burchell
1813369ade ldapauth: fix memory leak
ldap_get_dn() results need to be freed. Use a RAII wrapper to do this.

Original code by Attila Molnar
2012-11-29 10:07:05 +01:00