aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_cgiirc.cpp
Commit message (Expand)AuthorAgeFilesLines
* Make core_hostname_lookup redo the lookup when a user's IP changes.•••This removes the need to do lookups in the cgiirc module. This is useful as relying on gateways to do proper DNS checks is unreliable and has resulted in issues like 5fc4403f62. Its more sane if we do our own lookups. This change has been okayed by multiple WEBIRC gateway authors so I don't think it will cause many problems. Gravatar Peter Powell2017-10-311-100/+11
* Hide User#host and User#dhost and use accessors to modify them.•••This removes the need to invalidate the cache after changing a user's hostname. Gravatar Peter Powell2017-10-281-14/+11
* Change SetClientIP to take a C++ string instead of a char array.Gravatar Peter Powell2017-10-271-1/+1
* Un-constify the private fields of WebIRCHost.•••These being constant causes problems on older compilers that don't elide the temporary copy when adding to the host list. Gravatar Peter Powell2017-10-161-4/+4
* Rewrite the configuration documentation for m_cgiirc.Gravatar Peter Powell2017-10-151-1/+1
* Add support for WEBIRC blocks authenticating using client certs.Gravatar Peter Powell2017-10-151-6/+14
* Show the gateway, realhost, and realip in WHOIS for cgiirc clients.•••This mirrors a similar feature in ircd-hybrid but using a different numeric that is not already taken in InspIRCd. Gravatar Peter Powell2017-10-151-2/+26
* Clean up the WEBIRC command handler.•••- Fix the extremely broken indentation. - Simplify the HandleLocal code flow. - Improve the notices sent to operators. Gravatar Peter Powell2017-10-151-44/+41
* Add support for hashed WebIRC passwords to m_cgiirc.Gravatar Peter Powell2017-10-151-3/+5
* Rewrite the m_cgiirc configuration handling.•••- Store ident hosts separately to WebIRC hosts. - Throw exceptions when the configuration is invalid. Gravatar Peter Powell2017-10-151-59/+67
* Merge the latest changes from insp20 into master.Gravatar Peter Powell2017-10-121-1/+1
|\
| * Fix m_cgiirc allowing malformed hosts sent via WEBIRC.Gravatar Peter Powell2017-09-091-1/+1
* | Switch the WEBIRC command to use SplitCommand.Gravatar Peter Powell2017-10-011-7/+7
* | Remove support for the pass, passfirst, identfirst cgiirc types.•••These methods are not supported by any widely used gateways that I can find. If your gateway uses this then you should rewrite it to use the webirc method. For more details see the IRCv3 WEBIRC specification at http://ircv3.net/specs/extensions/webirc.html. Gravatar Peter Powell2017-09-271-69/+15
* | Merge pull request #1351 from SaberUK/master+webirc•••Allow filtering WebIRC connections into a connect class by gateway.Gravatar Peter Powell2017-08-051-6/+27
|\ \
| * | Allow filtering WebIRC connections into a connect class by gateway.Gravatar Peter Powell2017-06-221-6/+27
* | | Merge v2.0.23 and v2.0.24 into master.Gravatar Peter Powell2017-07-091-0/+10
|\ \ \ | |/ / |/| / | |/
| * Penalise clients that use WEBIRC incorrectly.Gravatar Peter Powell2017-04-271-0/+2
| * Fix WEBIRC not rejecting invalid IP addresses.Gravatar Peter Powell2017-04-271-0/+8
* | Change type of log messages to MODNAME in several modulesGravatar Attila Molnar2016-09-121-3/+3
* | Specify which Extensible subclass an ExtensionItem is valid forGravatar Attila Molnar2015-01-181-2/+3
* | Merge insp20Gravatar Attila Molnar2014-07-251-0/+1
|\|
| * m_cgiirc Call User::InvalidateCache() after changing host and dhost in OnChec...Gravatar Attila Molnar2014-05-011-0/+1
| * Prevent m_cgiirc from blocking indefinitely, resulting in registration timeou...Gravatar ElementalAlchemist2013-06-241-1/+1
* | Fix m_cgiirc to set the user's host straight away when using WEBIRC.Gravatar md_52014-04-091-27/+14
* | Rewrite clone counting to use one map instead of twoGravatar Attila Molnar2014-03-171-2/+1
* | Make the maximum hostname length configurable in the config.Gravatar Peter Powell2014-03-081-3/+3
* | Moving CGIIRC to a new snomask (w)Gravatar Googolplexed2014-02-231-5/+10
* | Remove whitespace and minor style changesGravatar Attila Molnar2014-01-231-1/+0
* | Clean up CoreException•••- Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs Gravatar Attila Molnar2013-12-181-1/+1
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-6/+0
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load a...•••This eliminates the need for calling OnRehash() in init() Gravatar attilamolnar2013-08-301-2/+1
* | Rename <connect:nouserdns> to <connect:resolvehostnames>.•••This name is more descriptive and avoids a double negative which could make the name of this setting unclear to non-native speakers. Gravatar Peter Powell2013-08-101-1/+1
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-3/+0
* | Modify the log message to contain the log type.Gravatar Peter Powell2013-08-041-2/+2
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-3/+3
* | 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-151-8/+8
* | Move <performance:nouserdns> to <connect:nouserdns>.Gravatar Peter Powell2013-04-271-3/+2
* | Modularize DNS•••The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this. Gravatar Adam2013-04-261-18/+29
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-3/+3
* | Move member variables from User to LocalUser•••- idle_lastmsg - dns_done - quitting_sendq - exempt - lastping Gravatar attilamolnar2013-04-011-1/+5
|/
* Fix m_dnsbl not checking cgiirc users when the cgiirc address is elinedGravatar attilamolnar2013-03-111-4/+4
* 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 Gravatar attilamolnar2012-12-021-6/+2
* 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 Gravatar attilamolnar2012-12-021-1/+1
* m_cgiirc Fix wrong announcement when the host in WEBIRC is too longGravatar attilamolnar2012-11-291-2/+6
* m_cgiirc Don't apply resolved host or send notifications when the user is qui...Gravatar attilamolnar2012-11-291-4/+6
* m_cgiirc Don't resolve IPs when <performance:nouserdns> is trueGravatar attilamolnar2012-11-291-2/+2
* 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() Gravatar attilamolnar2012-11-291-69/+64
* m_cgiirc Remove dead code, warn when a <cgihost> block has an invalid type va...Gravatar attilamolnar2012-11-291-54/+15