aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_geoip.cpp
Commit message (Expand)AuthorAgeFilesLines
* Redelete the geoip module which snuck back in during a merge.Gravatar Sadie Powell2019-08-131-209/+0
* Move the Module parameter of ExtensionItem et al to the start.•••This matches what other ServiceProvider types do. Gravatar Sadie Powell2019-08-131-1/+1
* Remove support for defaults in find_{compiler,linker}_flags().Gravatar Sadie Powell2019-03-061-2/+2
* Stop silencing warnings about `long long` not existing.•••We use C++14 now which has `long long`. Gravatar Sadie Powell2019-01-251-11/+0
* Replace the override macro with the override keyword.Gravatar Sadie Powell2019-01-251-9/+9
* Fix a bunch of harmless compiler warnings on recent GCC releases.Gravatar Peter Powell2018-10-261-1/+5
* Implement support for IPv6 GeoIP lookups.Gravatar Peter Powell2018-10-131-11/+28
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-0/+7
|\
| * Update the GeoIP ExtItem when CGI:IRC sets the real IP (#1471)•••Since CGI:IRC calls it's 'ChangeIP()' either from 'OnCheckReady()' or 'OnUserRegister()', both of which are called after the user has sent NICK/USER, we can safely skip re-setting the ExtItem prior to this point. This skips the first 'OnSetUserIP()' from 'User::AddUser()' as the 'OnSetConnectClass()' catch handles the initial setting.Gravatar genius30002018-03-301-1/+8
* | Include modules/whois.h directly from files that use it.Gravatar Peter Powell2018-04-081-0/+1
* | Move OnStats from the core to a cross-module event.•••Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later. Gravatar Peter Powell2018-04-081-2/+4
* | Fix some more oversights in m_geoip.•••- Add the G: extban to the EXTBAN 005 token. - Use CXX11_OVERRIDE with ReadConfig and OnCheckBan. Thanks to @genius3000 for pointing these out. Gravatar Peter Powell2018-04-071-2/+8
* | Fix disabling the GeoIP extban in m_geoip.Gravatar Peter Powell2018-04-071-1/+1
* | Implement support for banning users from channels by country code.Gravatar Peter Powell2018-04-061-8/+49
* | Add PackageInfo directives for Debian.Gravatar Peter Powell2017-10-211-0/+1
* | Add CentOS PackageInfoGravatar Adam2016-09-161-0/+1
* | Merge pull request #1222 from SaberUK/master+warnings•••Fix various compiler warningsGravatar Attila Molnar2016-09-161-0/+7
|\ \
| * | Fix m_geoip warning about the use of C++11 features.Gravatar Peter Powell2016-09-151-0/+7
* | | Rewrite the build system directive parser.Gravatar Peter Powell2016-09-161-2/+5
|/ /
* | Introduce Stats::Context, pass it to the OnStats hook and switch all code to itGravatar Attila Molnar2016-02-251-5/+4
* | Specify which Extensible subclass an ExtensionItem is valid forGravatar Attila Molnar2015-01-181-1/+3
* | Access local user list via new UserManager::GetLocalUsers() and make local_us...Gravatar Attila Molnar2014-07-191-2/+5
* | Move and rename typedef LocalUserList to UserManager::LocalListGravatar Attila Molnar2014-07-191-1/+1
* | Omit the server name internally when building a /STATS reply and prepend it l...Gravatar Attila Molnar2014-01-251-1/+1
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-2/+0
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+0
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-1/+0
* | Merge insp20Gravatar attilamolnar2013-06-061-2/+3
|\|
| * m_geoip Set cc in OnSetConnectClass to the newly created string if it was NULLGravatar attilamolnar2013-05-181-2/+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-4/+4
* | m_geoip: Fix compilationGravatar ChrisTX2013-04-021-1/+1
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-1/+0
|/
* Unbreak m_geoipGravatar attilamolnar2012-12-041-1/+1
* 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
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-291-1/+1
* Windows: In-depth cleanup (see details)•••-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714 Gravatar ChrisTX2012-10-121-1/+1
* m_geoip Add support for /stats G•••m_geoip Change /stats G numeric to be 801 Gravatar attilamolnar2012-06-121-10/+53
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+15
* Fix extras compilation under WindowsGravatar Adam2011-06-181-2/+9
* Change GeoIP to be a connect block matcher•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12450 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-131-39/+29
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Change module API to use LocalUser* where correct•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11943 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-15/+11
* Remove dummy API_VERSION from Version constructor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11887 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-171-1/+1
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-3/+2
* Describe module purpose in /MODULES output•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-221-1/+1
* ModResult conversion: Change return type of all module functions•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-2/+2
* OnRehash changes: split to multiple hooks to clarify use and prevent explosio...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-05-241-2/+2
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* Change module versions to use a string instead of fixed digits, and use props...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10290 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-251-1/+1