summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqloper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Mass comment removal.Gravatar brain2007-01-171-35/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6367 e03df62e-2008-0410-955e-edbf42e46eb7
* Change this to use our md5 provider rather than MD5() in the queryGravatar brain2007-01-131-1/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6303 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix: If sql user and pass matched, but not operclass or host, conf based ↵Gravatar peavey2007-01-021-0/+8
| | | | | | command would NOT be called and request would die quietly without notifying the user or send SNOtice of failed attempt. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6214 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to allow for OnRehash to know what user initiated the rehashGravatar brain2007-01-011-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
* Change the SQLutils and SQL providers to also use interfaces for proper ↵Gravatar peavey2006-12-281-20/+17
| | | | | | unload order, taking away the need for a static m_sqlutils. Depend order: m_sqlutils -> sql providers (m_mysql m_pgsql) -> sql modules (m_sqlauth m_sqloper). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6149 e03df62e-2008-0410-955e-edbf42e46eb7
* Still more massive commit fun. Headers in include/ still to be done, else ↵Gravatar w00t2006-12-151-6/+3
| | | | | | that's it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5997 e03df62e-2008-0410-955e-edbf42e46eb7
* Update $ModDep lines so that these properly depend on their headers in the ↵Gravatar brain2006-12-041-0/+1
| | | | | | makefile git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5853 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed at last.Gravatar brain2006-11-031-11/+35
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5640 e03df62e-2008-0410-955e-edbf42e46eb7
* Ive been unable to commit this since 9am, somehow port 22 is unusable at ↵Gravatar brain2006-11-031-4/+0
| | | | | | work now, even though we need to use it... damn cable and witless. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5639 e03df62e-2008-0410-955e-edbf42e46eb7
* Took out a header we needed to keep. Im done stick a fork in meGravatar brain2006-11-031-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5638 e03df62e-2008-0410-955e-edbf42e46eb7
* Hmm, svn said there was a conflict here, but nobody had committed :/Gravatar brain2006-11-031-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5637 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert special's sqloper change, nice try but only half a biscuit.Gravatar brain2006-11-031-7/+30
| | | | | | | | | | | With the old fix, it would echo out all the oper failure notices first then try again, annoying all the opers. The new version uses a CommandParser method i added, to again use OnPreCommand, halt the /oper command, but after doing the sql lookup call the original handler of the OPER command with the original user and pass, so the original handler handles the definitive failure message. DAMNIT STOP COMMITTING git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5636 e03df62e-2008-0410-955e-edbf42e46eb7
* Switched m_sqloper to use OnPostCommand instead of OnPreCommand, meaning the ↵Gravatar special2006-11-031-12/+4
| | | | | | config tags are checked before MySQL git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5635 e03df62e-2008-0410-955e-edbf42e46eb7
* Insert massive change here.Gravatar brain2006-10-191-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5504 e03df62e-2008-0410-955e-edbf42e46eb7
* Now with binary versioning goodnessGravatar brain2006-10-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
* Add const std::string &original_command to OnPreCommand and OnPostCommand, ↵Gravatar brain2006-09-171-1/+1
| | | | | | which gives the entire untouched command string and params in all its colon-ny glory git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5265 e03df62e-2008-0410-955e-edbf42e46eb7
* Snomasks +k (kills) and +o (oper)Gravatar brain2006-08-291-3/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5069 e03df62e-2008-0410-955e-edbf42e46eb7
* Just to mess with om's head, remove helperfuncs.h from everywhereGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to using Instance->Log (InspIRCd::Log) rather than log() macroGravatar brain2006-08-111-16/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
* New API updateGravatar om2006-08-111-11/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4872 e03df62e-2008-0410-955e-edbf42e46eb7
* Note: FOR THE MOMENT, this is BROKEN. It wont run right until im done.Gravatar brain2006-08-101-3/+3
| | | | | | | | Changed Parameter for modules from Server* to InspIRCd*. TODO: Move remaining Server* Modules into InspIRCd* and remove class Server. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4859 e03df62e-2008-0410-955e-edbf42e46eb7
* Mass-tidyup of module global vars, theyre no longer global vars.Gravatar brain2006-08-101-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4856 e03df62e-2008-0410-955e-edbf42e46eb7
* PublishFeature, FindFeature, FindModule, PriorityBefore, PriorityAfter -> ↵Gravatar brain2006-08-101-2/+2
| | | | | | InspIRCd:: git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4846 e03df62e-2008-0410-955e-edbf42e46eb7
* Updates to new APIGravatar om2006-08-101-3/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4842 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for API changesGravatar om2006-08-091-4/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4816 e03df62e-2008-0410-955e-edbf42e46eb7
* ServerConfig extern moved into class InspIRCdGravatar brain2006-08-091-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of Server::GetUsers(chanrec) - a throwback to before chanrec could ↵Gravatar brain2006-08-091-1/+1
| | | | | | | | | | | | | do this itself Move: bool ChangeDisplayedHost(const char* host); bool ChangeName(const char* gecos); int CountChannels(); Into userrec git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4807 e03df62e-2008-0410-955e-edbf42e46eb7
* WHEEEEE!!!!!Gravatar brain2006-08-081-3/+3
| | | | | | | | | All of: Write(), WriteTo(), WriteFrom(), WriteServ() are now methods of userrec. Write_NoFormat(), WriteTo_NoFormat(), WriteFrom_NoFormat(), WriteServ_NoFormat() are now std::string-taking overloaded methods of the functions above All modules updated to use new syntax, my fingers hurt :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4798 e03df62e-2008-0410-955e-edbf42e46eb7
* AddOper() and DeleteOper() -> userrec::Oper() and userrec::UnOper() (these ↵Gravatar brain2006-08-081-21/+14
| | | | | | do more, too) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4792 e03df62e-2008-0410-955e-edbf42e46eb7
* Support CIDR, CIDR zline, /oper and CIDR <connect> tags. NOTE: With CIDR ↵Gravatar brain2006-08-061-2/+2
| | | | | | oper, ident field is not supported (yet) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4732 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to use GetId() and ID rather than GetData() and dataGravatar om2006-07-231-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4531 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyups, optimisations and make the log messages make sense...Gravatar om2006-07-231-10/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4522 e03df62e-2008-0410-955e-edbf42e46eb7
* simple logic error (check they already are +o before you set it), seems to ↵Gravatar om2006-07-231-1/+1
| | | | | | fix +o issue git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4521 e03df62e-2008-0410-955e-edbf42e46eb7
* Mostly updated to new API; Currently doesn't check config o:lines (should be ↵Gravatar om2006-07-231-110/+179
| | | | | | tried before SQL ones); Doesn't seem to set UMODE +o properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4520 e03df62e-2008-0410-955e-edbf42e46eb7
* mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵Gravatar brain2006-07-161-1/+1
| | | | | | | | | | parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactored user modes to work like the channel modes - core and module data ↵Gravatar brain2006-07-081-2/+2
| | | | | | now the same storage format without ::modebits git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4175 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply mirq's optimization patchesGravatar brain2006-05-301-29/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3977 e03df62e-2008-0410-955e-edbf42e46eb7
* delete operator tracking in debug mode (using a macro -- live with it.)Gravatar brain2006-04-241-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
* Include paths changeGravatar brain2006-04-201-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3899 e03df62e-2008-0410-955e-edbf42e46eb7
* Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵Gravatar om2006-04-081-1/+1
| | | | | | going into inspircd.*, doesn't look like I've broken anything... :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7
* *hits eggy with a stick*Gravatar brain2006-03-131-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3710 e03df62e-2008-0410-955e-edbf42e46eb7
* More const ref fixesGravatar brain2006-03-111-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3656 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed Server* Srv stuff in these too, although by default these arent ↵Gravatar brain2006-02-261-2/+1
| | | | | | available to win32 builds git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3333 e03df62e-2008-0410-955e-edbf42e46eb7
* Oh yae, Oh Yae, back in old days of yore, Ye Brain doth set the nick buffer ↵Gravatar brain2006-02-221-1/+1
| | | | | | | | | | as NICKLEN+1 to ease understanding by newbs who didnt know what thou null terminator was. And yae, at a date later hence, Ye Brain then setteth ye buffer back to NICKLEN again. Alas, neither Ye Brain nor Ye trusty followers hath then setteth back the rest of the core to NICKLEN-1, and verily, chaos ensued. :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3286 e03df62e-2008-0410-955e-edbf42e46eb7
* Add .c_str()'s to m_sqloper in call to OneOfMatches(), and change prototype ↵Gravatar om2006-02-051-19/+25
| | | | | | of OneOfMatches to take const char* instead of char*. Either that or case all the .c_str()'s to lose the const :" git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3091 e03df62e-2008-0410-955e-edbf42e46eb7
* Added support for space-seperated lists here, tooGravatar brain2006-02-041-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3075 e03df62e-2008-0410-955e-edbf42e46eb7
* Created OnPostOper that can be gauranteed to be called *after* opering (by ↵Gravatar brain2006-01-291-0/+1
| | | | | | ALL modules) is done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2973 e03df62e-2008-0410-955e-edbf42e46eb7
* Deleted the semicolon that had half the dev team wondering...Gravatar om2006-01-281-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2955 e03df62e-2008-0410-955e-edbf42e46eb7
* A few tweaks here and thereGravatar brain2006-01-281-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2954 e03df62e-2008-0410-955e-edbf42e46eb7
* Missing externGravatar brain2006-01-281-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2950 e03df62e-2008-0410-955e-edbf42e46eb7