summaryrefslogtreecommitdiff
path: root/src/modules/extra
AgeCommit message (Collapse)Author
2009-02-22Forward port r11137 from stable:peavey
================================ Use extended open method instead of the basic. Because basic always does SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE and we just want SQLITE_OPEN_READWRITE so we can warn if the db does not exist, rather than create an empty db. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11138 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-19Remove unneeded "fd" member of issl_sessiondanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11135 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-19Remove unneeded comment about warnings on 64-bitdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11134 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-19GnuTLS does not need a double-copy input bufferdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11133 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-16Remove redundant PriorityState, enum Priority does the exact same thing.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11121 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-14Nuke trailing spacespeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-12and here, and herepeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11093 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-12Ah pasting, also remove this var from herepeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11092 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-12Nuke an unused varpeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11091 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-12Several fixes to mysql module:peavey
* Resolve a deadlock sneaking in when using queries during module load time (start up) triggered by such modules as sqllog. * Move a few mysql vars to the heap to avoid random stack corruption (valgrind no longer complains either). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11090 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-11I really dont get the oddball count()? rewrite itbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11088 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-11Merge in initial numbered parameters patch from Phoenix, thanks :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11087 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-28Remove an incorrect commentw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11013 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-25This is more accuratebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11002 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-25Properly check if the SSL handshake is completed in m_ssl_gnutls, fixes the ↵dz
recent issue where connections would hang with nothing recieved on either end until registration timeout. Also reverts r10998. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11000 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-25Try this as the ssl crash fixbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10998 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-23Templateise thisbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10991 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-23Fix m_nationalchars using a copy and paste of my unsafe copy and paste ↵brain
algorithm, that will lock up if the string to replace contains the string to search for. Finally make this function a core utility function and remove the copies from 3 modules m_alias m_nationalchars and m_sqlauth git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10990 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-22Add $gecos, $ident, $server, $uuid vars for building possible auth queries. ↵brain
These are the 1.2 equivalent of sqlauth:useident, and more. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10987 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-17Fix for bug #679 reported by Namegduf, based on suggestion for fix by dz, ↵brain
thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10966 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-07Readability: pointless construct of a std::string from another std::string ↵brain
for throwing an exception git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10952 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02Update copyrights for 2009.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-31Change numeric 671, starttls failure to 691. 671 conflicts with unreal's ssl ↵brain
user numeric. It's documented on our wiki as 'kineircd' but kineircd was never even realeased, so we cant go on that, we'll go with what the unreal numeric says. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10928 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-28Modify STARTTLS error message to clarify that it may not be sent after ↵w00t
registration has commenced. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10922 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-18Properly disconnect clients that send STARTTLS after registering; noticed by ↵dz
jdhore git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10897 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-15Handle file not found, and tidy up the perl.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10894 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-15Fix naming convention to be consistant. (cmd_ -> Command)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10891 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-15Add support for freetds 0.82 which is being shipped now with newer distros, ↵peavey
and maintain compatibility for 0.64 and up. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10890 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-13m_ssl_gnutls: Log ssl errorspsychon
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10883 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-07Convert necessary match calls to use ASCII casemap.w00t
1.2 may now be made casemap-aware via a module setting national_case_sensitive_map to their own table, and resetting to the RFC table on unload. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10859 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-01Second attempt at time() -> SI->Time(), now problems with the original were ↵w00t
fixed. (SI::TIME was not initialised). Thanks Namegduf! (Please test, all, valdebug etc, report odd behaviour/warnings!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-01Fix opercert to behave correctly, patch from and tested by dz -- thanks!w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10782 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-30Better error message for erroring on loading server cert - give ↵w00t
certfile/keyfile in the error message. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10755 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵w00t
dns.cpp in mysterious ways.. seemingly a bad pointer there somehow..? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23Patch from Namegduf converting all instances (where possible) of time() -> ↵w00t
ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-15m_ssl_openssl is sending log messages and calling itself m_ssl_gnutls..special
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10645 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-04Header tidyups. Apart from module to module API stuff and external deps, ↵brain
modules dont really need to include much but inspircd.h (and xline.h if they create new xline factories) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10622 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-04We are including tons more than we need to here, its a mess :pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10621 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-26Initialise SSL session pointer to NULL to prevent a potentially unsafe ↵w00t
comparison, thanks Macgyver. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10602 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-22Set Id property on a bunch of modules which lack it, etc.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10593 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21someone forget an instancebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10581 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21This compiles but is NOT tested yet. Do not use unless you like pain.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10580 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21Be consistent. Use ServerInstance in all places instead of 'Instance' in ↵w00t
half. This has bugged me forever :p. I think I got all of extra/ too.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10579 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21Make regex providers load correctly. Move m_rline to use the regex ↵aquanight
providers, and also move m_rline out of extras/. Document provider modules, <rline:engine> and particularly the uselessness of <rline engine="glob">. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10573 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-20Move m_regex.h and m_regex_glob.cpp to main modules directory, as these have ↵aquanight
no requirements. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10571 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-17Roll back tweak to the starttls spec requested by kvirc devs, sorry we cant ↵brain
do this as we have other client devs breathing down our throats that it broke their clients :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10549 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-13more namespace fix0rzpeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10539 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-13namespace fix0rzpeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10537 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-12Last cleanup. All trunk extras now builds again.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10532 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-12fix for listensocket, tested and also working like a charm.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10531 e03df62e-2008-0410-955e-edbf42e46eb7