]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
attilamolnar [Sun, 1 Jul 2012 19:25:54 +0000 (21:25 +0200)]
Fix crash in ADDLINE handler when the command had no parameters
Robin Burchell [Sun, 1 Jul 2012 19:34:18 +0000 (21:34 +0200)]
Don't throw an exception if passed bad parameters to stringjoiner.
It's far too common to "misuse" this API by accidentally trying to use
stringjoiner with an empty container, and fixing that is more or less adding
boilerplate in every place we fix it.
Instead, let's just return and not touch the string, and not throw.
Done-with: Attila Molnar <attilamolnar@hush.com>
attilamolnar [Sun, 1 Jul 2012 19:06:22 +0000 (21:06 +0200)]
m_xline_db Fix memory leak when adding a loaded xline fails
Robin Burchell [Sun, 1 Jul 2012 19:12:16 +0000 (21:12 +0200)]
Revert "users: add SetClientIP function for irc::sockets::sockaddrs type."
This reverts commit
f0474272303ac9297f637ce956315518138bafff .
Robin Burchell [Sun, 1 Jul 2012 19:12:06 +0000 (21:12 +0200)]
Revert "users: LocalUser constructor should call SetClientIP() on itself"
This reverts commit
dca6a7821efbfd1e6c2987dfa1d2b9f72d1db1be .
Robin Burchell [Sun, 1 Jul 2012 19:11:59 +0000 (21:11 +0200)]
Revert "users: introduce OnSetClientIP hook."
This reverts commit
5fd31ec5a6ba6021763b36d8d17d4665900623ab .
Robin Burchell [Sun, 1 Jul 2012 19:11:45 +0000 (21:11 +0200)]
Revert "m_dnsbl: switch to OnSetClientIP hook which may be refired."
This reverts commit
fbf14cb9ff28ae1b8a6c4b90a18470381afbcc53 .
attilamolnar [Wed, 27 Jun 2012 23:39:16 +0000 (01:39 +0200)]
Fix maxbans not being enforced
attilamolnar [Sun, 1 Jul 2012 17:53:37 +0000 (19:53 +0200)]
m_callerid, m_dccallow Use OnUserPostNick hook instead of OnUserPreNick
attilamolnar [Sun, 1 Jul 2012 18:35:16 +0000 (20:35 +0200)]
m_callerid, m_dccallow Fix crash caused by allowing unregistered users and SIDs to be on callerid/dccallow lists
attilamolnar [Sun, 1 Jul 2012 18:00:09 +0000 (20:00 +0200)]
m_callerid Remove unused parameter
attilamolnar [Sun, 1 Jul 2012 18:05:40 +0000 (20:05 +0200)]
m_callerid Use std::find() where possible
attilamolnar [Sun, 1 Jul 2012 18:36:26 +0000 (20:36 +0200)]
m_callerid Remove redundant includes
attilamolnar [Sun, 1 Jul 2012 18:47:07 +0000 (20:47 +0200)]
m_dccallow Fix unsafe iteration
attilamolnar [Sun, 1 Jul 2012 18:56:24 +0000 (20:56 +0200)]
m_xline_db Get the xlines from the core, don't maintain a seperate list
attilamolnar [Sun, 24 Jun 2012 15:10:11 +0000 (17:10 +0200)]
m_noctcp Use SimpleChannelModeHandler, reorder checks
attilamolnar [Sun, 24 Jun 2012 15:09:03 +0000 (17:09 +0200)]
m_opermodes Remove unused OnRehash hook, don't touch remote opers, send mode changes with SendMode
attilamolnar [Sun, 24 Jun 2012 14:06:58 +0000 (16:06 +0200)]
m_delaymsg Don't allow mode to be unset when it's not set
attilamolnar [Sun, 24 Jun 2012 13:55:14 +0000 (15:55 +0200)]
m_nonicks Use SimpleChannelModeHandler
attilamolnar [Sun, 24 Jun 2012 16:08:23 +0000 (18:08 +0200)]
m_operlevels Remove unused hook
attilamolnar [Fri, 15 Jun 2012 18:08:04 +0000 (20:08 +0200)]
m_alltime Add a missing space to the notice
attilamolnar [Fri, 15 Jun 2012 18:03:08 +0000 (20:03 +0200)]
Remove unused channelmanager
Robin Burchell [Fri, 29 Jun 2012 21:49:05 +0000 (14:49 -0700)]
Merge pull request #238 from SaberUK/insp20-spelling-fix
[2.0] Spelling fix.
Peter Powell [Fri, 29 Jun 2012 10:51:34 +0000 (11:51 +0100)]
Fix typo in log message.
Attila Molnar [Thu, 28 Jun 2012 00:24:00 +0000 (17:24 -0700)]
Merge pull request #237 from SaberUK/insp20-fix-windows-build
[2.0] InviteBase needs to be a CoreExport on Windows.
Peter Powell [Thu, 28 Jun 2012 00:19:11 +0000 (01:19 +0100)]
InviteBase needs to be a CoreExport on Windows.
Attila Molnar [Wed, 27 Jun 2012 23:29:21 +0000 (16:29 -0700)]
Merge pull request #235 from attilamolnar/insp20+invitefix
Attila Molnar [Wed, 27 Jun 2012 23:23:09 +0000 (16:23 -0700)]
Merge pull request #234 from attilamolnar/insp20+chanhistory
Attila Molnar [Wed, 27 Jun 2012 23:16:11 +0000 (16:16 -0700)]
Merge pull request #233 from attilamolnar/insp20+cap
attilamolnar [Sun, 17 Jun 2012 16:37:47 +0000 (18:37 +0200)]
m_cap Allow clients to disable specific capabilities by prefixing them with a dash (-) to be compliant with the specification
attilamolnar [Sun, 17 Jun 2012 16:37:39 +0000 (18:37 +0200)]
m_cap Fix crash when a user issued a CAP CLEAR request and the CapEvent had an empty list of removed CAPs
attilamolnar [Sun, 17 Jun 2012 16:37:06 +0000 (18:37 +0200)]
m_cap Use an enum to specify cap event type instead of a string, assign CapEvent data in the constructor
Attila Molnar [Tue, 26 Jun 2012 21:16:44 +0000 (14:16 -0700)]
Merge pull request #215 from attilamolnar/insp20+modfixes
[2.0] Bugfixes/improvements in m_rline, m_svshold, m_shun, m_cban
attilamolnar [Sun, 17 Jun 2012 15:53:39 +0000 (17:53 +0200)]
Fix pending invites not being removed when a channel was deleted or had its TS lowered
attilamolnar [Sun, 17 Jun 2012 15:48:18 +0000 (17:48 +0200)]
m_chanhistory Keep history when changing parameters
attilamolnar [Sun, 17 Jun 2012 15:47:24 +0000 (17:47 +0200)]
m_chanhistory Don't allow durations that contain an invalid char or too long
attilamolnar [Sun, 17 Jun 2012 15:45:12 +0000 (17:45 +0200)]
m_chanhistory Add config setting to show/hide the informational notice before playing back history, don't playback to remote users
attilamolnar [Sun, 17 Jun 2012 12:58:16 +0000 (14:58 +0200)]
m_shun Fix out of bounds vector access leading to crashes when hiding part reason for a shunned user
attilamolnar [Sun, 17 Jun 2012 12:50:18 +0000 (14:50 +0200)]
m_shun Fix a couple of things, namely
- remove OnUserConnect hook as it was completly a no-op
- remove call to XLineManager::ApplyLines() as it iterates the local userlist and made no sense
- return CMD_SUCCESS when /SHUN succeeded, CMD_FAILURE otherwise
- remove unused exception handler
- don't route SHUN commands at all, spanningtree adds and removes the lines automatically
attilamolnar [Sun, 17 Jun 2012 12:46:34 +0000 (14:46 +0200)]
m_rline Fix memory leak when zlineonmatch was true and the zline existed, simplify zline adding logic
attilamolnar [Sun, 17 Jun 2012 12:44:01 +0000 (14:44 +0200)]
m_svshold Fix a couple of things, namely
- don't ask the XLine manager to apply SVSHOLD lines to the userlist, as we do nothing on match
- remove call to XLineManager::ApplyLines() as it iterates the local userlist and made no sense
- return CMD_SUCCESS when SVSHOLD succeeded, CMD_FAILURE otherwise
- remove unused exception handler
- don't route SVSHOLD commands at all, spanningtree adds and removes the lines automatically
attilamolnar [Sun, 17 Jun 2012 12:42:16 +0000 (14:42 +0200)]
m_cban Fix a couple of things, namely
- remove call to XLineManager::ApplyLines() as it iterates the local userlist and made no sense
- return CMD_SUCCESS when /CBAN succeeded, CMD_FAILURE otherwise
- remove unused exception handler
- don't route CBAN commands at all, spanningtree adds and removes the lines automatically
Robin Burchell [Fri, 15 Jun 2012 09:44:57 +0000 (02:44 -0700)]
Merge pull request #193 from attilamolnar/insp20+newlinefix
[2.0] Cut the ending \n from all lines in included (exec)files
Attila Molnar [Thu, 14 Jun 2012 00:58:20 +0000 (17:58 -0700)]
Merge pull request #184 from SaberUK/insp20-copy-all-configs
[2.0] Install all configuration files
Sir Pogsalot [Wed, 13 Jun 2012 06:03:56 +0000 (23:03 -0700)]
Merge pull request #213 from attilamolnar/insp20+namesx
[2.0] Add support to m_namesx for altering /WHO replies
attilamolnar [Mon, 11 Jun 2012 16:44:53 +0000 (18:44 +0200)]
m_geoip Add support for /stats G
m_geoip Change /stats G numeric to be 801
attilamolnar [Thu, 7 Jun 2012 18:14:58 +0000 (20:14 +0200)]
Make m_cap.h a bit cleverer
attilamolnar [Thu, 7 Jun 2012 18:10:07 +0000 (20:10 +0200)]
New module to support IRCv3 extras, namely account-notify, away-notify and extended-join CAPs
attilamolnar [Thu, 7 Jun 2012 18:08:26 +0000 (20:08 +0200)]
m_services_account Send an AccountEvent with an empty accountname when a user logs out of an account
attilamolnar [Thu, 31 May 2012 20:47:24 +0000 (22:47 +0200)]
m_spanningtree Burst to a new server before introducing it to the rest of the network
Fixes issue #103 reported by @nenolod
Sir Poggles [Wed, 13 Jun 2012 01:58:45 +0000 (18:58 -0700)]
Be consistent with Robby's qQ snomask changes
William Pitcock [Tue, 12 Jun 2012 03:17:09 +0000 (22:17 -0500)]
m_dnsbl: switch to OnSetClientIP hook which may be refired.
William Pitcock [Tue, 12 Jun 2012 03:12:23 +0000 (22:12 -0500)]
users: introduce OnSetClientIP hook.
This hook is called whenever a client's IP is modified.
William Pitcock [Tue, 12 Jun 2012 03:10:55 +0000 (22:10 -0500)]
users: LocalUser constructor should call SetClientIP() on itself
This way we fire a future hook based on local IP information changing.
William Pitcock [Tue, 12 Jun 2012 03:06:36 +0000 (22:06 -0500)]
users: add SetClientIP function for irc::sockets::sockaddrs type.
Code which touches client_sa should instead use this SetClientIP function so that hooks may
be called in the future.
Sir Poggles [Wed, 13 Jun 2012 01:22:15 +0000 (18:22 -0700)]
fgets(): refer to the buffer size (no literals)
attilamolnar [Mon, 11 Jun 2012 16:59:06 +0000 (18:59 +0200)]
Fix 2 clang warnings reported by @SaberUK
Robby- [Tue, 12 Jun 2012 02:35:35 +0000 (04:35 +0200)]
Snomask qQ: Swap quit message and IP for easier parsing by bots or scripts
Peter Powell [Mon, 11 Jun 2012 04:34:47 +0000 (05:34 +0100)]
README changes.
attilamolnar [Mon, 11 Jun 2012 17:55:44 +0000 (19:55 +0200)]
Fix build on Debian GNU/Hurd platforms, thanks to Jonathan Wiltshire <jmw@debian.org> for the patch
Fixes issue #98 reported by @guikcd
Robby- [Tue, 12 Jun 2012 04:37:04 +0000 (06:37 +0200)]
m_check: Include IP and gecos in host/IP-mask lookup results
Peter Powell [Tue, 12 Jun 2012 17:53:50 +0000 (18:53 +0100)]
Install example alias and module configuration files as well.
Peter Powell [Tue, 12 Jun 2012 17:38:54 +0000 (18:38 +0100)]
Move all example configuration files to their own directory.
attilamolnar [Tue, 12 Jun 2012 16:16:08 +0000 (18:16 +0200)]
m_namesx Add support for altering /WHO replies to be compliant with the specification
attilamolnar [Mon, 11 Jun 2012 13:08:10 +0000 (15:08 +0200)]
m_spanningtree Only add a resolved server IP as valid if it still exists when the lookup completes
attilamolnar [Mon, 11 Jun 2012 13:05:07 +0000 (15:05 +0200)]
m_spanningtree Move SecurityIPResolver code to resolvers.cpp from resolvers.h
attilamolnar [Mon, 11 Jun 2012 13:04:29 +0000 (15:04 +0200)]
m_spanningtree Disallow server passwords which contain a space char and those which begin with a colon
Update links.conf.example
attilamolnar [Mon, 11 Jun 2012 13:02:10 +0000 (15:02 +0200)]
m_spanningtree Notify opers upon ecountering a configuration error when rehashing
attilamolnar [Thu, 7 Jun 2012 23:14:22 +0000 (01:14 +0200)]
Cut the ending \n from all lines in included (exec)files
Robin Burchell [Fri, 1 Jun 2012 08:07:36 +0000 (01:07 -0700)]
Merge pull request #179 from attilamolnar/insp20+desyncfix
[2.0] Fix desyncs caused by m_autoop and broken spanningtree routing logic
Robin Burchell [Fri, 1 Jun 2012 08:06:44 +0000 (01:06 -0700)]
Merge pull request #182 from attilamolnar/insp20+gnutlsfix
[2.0] Fix crash in m_ssl_gnutls destructor when dh_params wasn't inited
attilamolnar [Fri, 1 Jun 2012 02:35:52 +0000 (04:35 +0200)]
m_ssl_gnutls Only generate DH params when dh_params is inited
attilamolnar [Fri, 1 Jun 2012 02:03:46 +0000 (04:03 +0200)]
m_ssl_gnutls Fix crash caused by calling gnutls_dh_params_deinit() when dh_params wasn't inited
Fixes #181 reported by @BlacklightShining
attilamolnar [Thu, 31 May 2012 18:09:24 +0000 (20:09 +0200)]
m_spanningtree Fix desync issue #37 reported by @Joah - part 2
Robin Burchell [Wed, 30 May 2012 09:55:45 +0000 (02:55 -0700)]
Merge pull request #175 from attilamolnar/insp20+chopfix
[2.0] Fix last character being chopped off in included (exec)files
Robin Burchell [Wed, 30 May 2012 09:54:45 +0000 (02:54 -0700)]
Merge pull request #173 from Robby-/insp20-moddesc
[2.0] Module description updates
Robin Burchell [Wed, 30 May 2012 09:46:30 +0000 (02:46 -0700)]
Merge pull request #166 from Robby-/insp20-cfgcorrections
[2.0] Add more documentation about logging, aswell as make text, tab and space corrections to the configs.
Robin Burchell [Wed, 30 May 2012 09:44:18 +0000 (02:44 -0700)]
Merge pull request #159 from gholms/md5-memset-20
[2.0] md5: zero the whole MD5Context, not only part of it
Robin Burchell [Wed, 30 May 2012 09:43:15 +0000 (02:43 -0700)]
Merge pull request #163 from attilamolnar/insp20+silentjoinfix
[2.0] Don't send a MODE on join when the join was silenced by a module
Robby- [Wed, 30 May 2012 01:46:41 +0000 (03:46 +0200)]
Module description updates
attilamolnar [Wed, 30 May 2012 01:07:22 +0000 (03:07 +0200)]
m_autoop Fix desync issue #37 reported by @Joah - part 1
attilamolnar [Tue, 29 May 2012 22:43:45 +0000 (00:43 +0200)]
Fix last character being chopped off in included (exec)files (e.g. motd and rules)
Robby- [Tue, 29 May 2012 22:29:06 +0000 (00:29 +0200)]
Add more documentation about logging, aswell as make text, tab and space corrections to the configs
attilamolnar [Tue, 29 May 2012 13:13:55 +0000 (15:13 +0200)]
Fix printf-style WriteAllExcept not obeying serversource parameter
attilamolnar [Tue, 29 May 2012 13:13:42 +0000 (15:13 +0200)]
Silence the MODE too if a join was silenced by a module not just the JOIN
This leaked information when a module gave privs to the joining user in OnUserPreJoin
Fix CycleHostsFromUser having the opposite effect
Robin Burchell [Tue, 29 May 2012 08:21:00 +0000 (01:21 -0700)]
Merge pull request #156 from attilamolnar/insp20+statszfix
[2.0] Improve bandwidth usage statistics (/STATS z)
Garrett Holmstrom [Mon, 28 May 2012 20:22:32 +0000 (13:22 -0700)]
[2.0] md5: zero the whole MD5Context, not only part
attilamolnar [Mon, 28 May 2012 20:10:28 +0000 (22:10 +0200)]
Use socketengine functions for sending and receiving data instead of plain send() and recv() so /STATS z displays correct bandwidth usage
Robin Burchell [Mon, 28 May 2012 11:23:57 +0000 (04:23 -0700)]
Merge pull request #152 from attilamolnar/insp20+showwhoisfix
[2.0] m_showwhois Fix potential crash in WHOISNOTICE handler
Robin Burchell [Mon, 28 May 2012 11:23:29 +0000 (04:23 -0700)]
Merge pull request #150 from attilamolnar/insp20+incrementuidfix
[2.0] Fix generating invalid UIDs after current_uid is 000Z99999
attilamolnar [Sun, 27 May 2012 23:28:36 +0000 (01:28 +0200)]
m_showwhois Fix potential crash in WHOISNOTICE handler
attilamolnar [Sun, 27 May 2012 21:30:02 +0000 (23:30 +0200)]
Add testsuite tests for UID generation
attilamolnar [Sun, 27 May 2012 21:08:14 +0000 (23:08 +0200)]
While at it, use a constant parameter for calling IncrementUID in GetUID
Get rid of curindex, use a bool to determine if we need to initialize
attilamolnar [Sun, 27 May 2012 21:05:12 +0000 (23:05 +0200)]
Fix generating invalid UIDs after current_uid is 000Z99999 (next UID became 000[AAAAA)
Robin Burchell [Sun, 27 May 2012 13:09:36 +0000 (06:09 -0700)]
Merge pull request #142 from attilamolnar/insp20+sestatsfix
[2.0] Count the actual number of sent/received bytes in SocketEngine statistics
Robin Burchell [Sun, 27 May 2012 13:07:55 +0000 (06:07 -0700)]
Merge pull request #145 from SaberUK/insp20-typo-fixes
[2.0] Typo fixes.
Peter Powell [Fri, 25 May 2012 19:13:53 +0000 (20:13 +0100)]
A few more typo fixes.
Peter Powell [Fri, 25 May 2012 18:40:38 +0000 (19:40 +0100)]
Debian typo fixes.
Adam [Wed, 23 May 2012 22:56:55 +0000 (18:56 -0400)]
Fixed m_mlock
attilamolnar [Wed, 23 May 2012 16:48:43 +0000 (18:48 +0200)]
Count the actual number of sent/received bytes in SocketEngine instead of the buffer size passed to the send/receive functions