Fix invalid argument warnings on clang.
Merge pull request #380 from SaberUK/insp20+fix-clang-warning

Fix invalid argument warnings on clang.
Fix #380 on BSD make.
Fix unsafe iteration in DelMode() when unloading m_permchannels
Remove ServerLimits::Finalise(), it's completely wrong

Truncate <limits:identmax>+1 long idents in User::ChangeIdent()
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
m_ident Reject invalid and error replies
Add a flag to Command that controls whether an empty last parameter is allowed or not
m_callerid Fix memory leak in CallerIDExtInfo::free()
Release 2.0.10
Fixed m_ssl_gnutls build on Windows; gnutls.h uses ssize_t which is defined in gcrypt.h
Fix property list arguments.
Fix errors in socketengine_ports so it compiles on Solaris

Thanks to fraggeln for reporting and testing
m_ldapoper Fix typo spotted by @lordsith49

Fixes #392
OpenBSD does not have KERN_MAXFILESPERPROC.
Fix the poll socket engine on BSD's other than FreeBSD.
Include <list> in base.h to prevent build errors on OpenBSD.
Replace a GNUmake idiom with the portable equivalent.
m_banredirect Remove unnecessary hooks, cleanup

- Remove prioritization before m_banexception, it doesn't even hook OnUserPreJoin
- Remove OnChannelDelete handler: nothing to do in that case, our extension item is automatically freed
- Remove empty OnRehash handler
m_banredirect Deny the join to the redirect channel if it has a redirecting ban set that matches the user

Fixes #395 reported by @patatje368