summaryrefslogtreecommitdiff
path: root/src/modules/m_testcommand.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* All commands now return results CMD_FAILURE or CMD_SUCCESSGravatar brain2006-09-061-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5150 e03df62e-2008-0410-955e-edbf42e46eb7
* And this (i guess it once tested mode stuff)Gravatar brain2006-09-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5108 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-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
* None of the modules use an extern InspIRCd* any moreGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4863 e03df62e-2008-0410-955e-edbf42e46eb7
* (Bigger than it looks, i did this with perl inplace edit) -- commands now ↵Gravatar brain2006-08-111-2/+2
| | | | | | take an InspIRCd* param to their constructor, so that you can do stuff within them without an extern git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4862 e03df62e-2008-0410-955e-edbf42e46eb7
* Last of Server:: methods moved to InspIRCd::. Server:: removed.Gravatar brain2006-08-101-4/+4
| | | | | | | | This will need a real good tidyup later, because now everything is in the right place, but its a mess because for now i threw them into place (e.g. space indenting, etc) Next on the todo: Make command handlers have a ServerInstance (gank!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4861 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
* Change some resolver stuff.Gravatar brain2006-08-091-1/+3
| | | | | | | OM, THIS STILL WONT COMPILE! Error on the same line git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4821 e03df62e-2008-0410-955e-edbf42e46eb7
* do_log -> static void InspIRCd::Log() (with vararg and std::string variants)Gravatar brain2006-08-091-0/+1
| | | | | | | The #define for this still exists, but maybe should be phased out? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4809 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra stuff for forcing a v4 or v6 lookupGravatar brain2006-08-031-15/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4679 e03df62e-2008-0410-955e-edbf42e46eb7
* Added test framework, so that i can work on improving MakeIP6IntGravatar brain2006-08-031-0/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4677 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed resolver, forward lookup of ipv6 doesnt work right yetGravatar brain2006-08-031-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4674 e03df62e-2008-0410-955e-edbf42e46eb7
* Add error messages to Resolver::OnError()Gravatar brain2006-08-021-2/+2
| | | | | | | | Add exception handling to several places that use Resolver (it can throw) Remove Resolver::ProcessResult(), its now handled within the bowels of dns.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4646 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unused temp buffersGravatar brain2006-08-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4623 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
* Add exception handling hereGravatar brain2006-07-121-2/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4361 e03df62e-2008-0410-955e-edbf42e46eb7
* Added helperfuncs.hGravatar brain2006-07-121-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4356 e03df62e-2008-0410-955e-edbf42e46eb7
* Oops, make methods publicGravatar brain2006-07-121-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4355 e03df62e-2008-0410-955e-edbf42e46eb7
* Test framework in m_testcommand, add interfaceGravatar brain2006-07-121-15/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4354 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidied up m_testcommand (removed a mode handler)Gravatar brain2006-07-081-37/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4197 e03df62e-2008-0410-955e-edbf42e46eb7
* Renamed to chanrec::modesGravatar brain2006-03-121-1/+1
| | | | | | | | Renamed IsCustomModeSet to IsModeSet GetModeParameter will now return the channel limit (as a string) for a request for mode 'l' and the channel key for a request for mode 'k'. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3692 e03df62e-2008-0410-955e-edbf42e46eb7
* Server* Srv marked static or moved to private member of module class in all ↵Gravatar brain2006-02-261-1/+1
| | | | | | modules, paves way for removal of static-build-munging-regexp that breaks +eI git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3330 e03df62e-2008-0410-955e-edbf42e46eb7
* Updated copyrights in headers etc using perl inplace editGravatar brain2006-01-151-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
* Last set converted to 'Implements'Gravatar brain2005-12-261-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2667 e03df62e-2008-0410-955e-edbf42e46eb7
* Typo in declarationGravatar brain2005-12-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2539 e03df62e-2008-0410-955e-edbf42e46eb7
* Last set of modules converted to new command systemGravatar brain2005-12-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2538 e03df62e-2008-0410-955e-edbf42e46eb7
* Added support for new command systemGravatar brain2005-12-161-19/+29
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2537 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed behaviour of module API to pass Server* to the constructor, rather ↵Gravatar brain2005-12-071-5/+5
| | | | | | than have to create one (makes more sense) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2252 e03df62e-2008-0410-955e-edbf42e46eb7
* Few more stylistic changes, modules is now (fairly) consistant with how it ↵Gravatar w00t2005-11-301-3/+6
| | | | | | should be.. src directory might be done if it's ever frozen. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2034 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to use __single_client_alloc, faster on most systems in a single threadGravatar brain2005-05-151-0/+2
| | | | | | | Specified namespace std in *all* files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7
* Tons of module versionflags stuff, and checks for it in /UNLOADMODULEGravatar brain2005-04-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1001 e03df62e-2008-0410-955e-edbf42e46eb7
* Added version flagsGravatar brain2005-04-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1000 e03df62e-2008-0410-955e-edbf42e46eb7
* Started work on /UNLOADMODULE, resource tracking and flags in Version classGravatar brain2005-04-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@999 e03df62e-2008-0410-955e-edbf42e46eb7
* Updated header commentsGravatar brain2004-05-161-1/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@816 e03df62e-2008-0410-955e-edbf42e46eb7
* Added Module::OnAccessCheckGravatar brain2004-05-011-1/+1
| | | | | | | | | Added ListMode support Fixed Extensible class bug Added +qa mode module git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@760 e03df62e-2008-0410-955e-edbf42e46eb7
* Modified the Module::OnExtendedMode() method to use a void* as its target ↵Gravatar brain2004-04-051-1/+5
| | | | | | which the coder must cast into a chanrec or userrec. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@383 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed a bug in servermode handling where the target is a channel, found by ↵Gravatar brain2004-04-041-16/+3
| | | | | | ChroNiCk git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@382 e03df62e-2008-0410-955e-edbf42e46eb7
* Completed support for module-handled umodesGravatar brain2004-04-041-2/+1
| | | | | | | Updated m_cloaking to auto-set mode +x, and update cloaking status as its added/removed from users git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@378 e03df62e-2008-0410-955e-edbf42e46eb7
* Added support for module-based chanmodes with parameters and the ability to ↵Gravatar brain2004-04-041-1/+11
| | | | | | | | | query the mode states. Created test case in m_testcommand module where a mode with one parameter can be set/removed on channels git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@375 e03df62e-2008-0410-955e-edbf42e46eb7
* Added support for module-defined chanmodes with no parametersGravatar brain2004-04-031-0/+25
| | | | | | | | Fixed minor typo in example conf Added new stylesheet and docs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@362 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved commentsGravatar brain2004-04-021-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@357 e03df62e-2008-0410-955e-edbf42e46eb7
* Added ability to override modes (allows SAMODE support etc)Gravatar brain2004-04-021-0/+24
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@355 e03df62e-2008-0410-955e-edbf42e46eb7
* Clarified documentationGravatar brain2004-04-021-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@354 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed typoGravatar brain2004-04-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@353 e03df62e-2008-0410-955e-edbf42e46eb7
* Added simple test command moduleGravatar brain2004-04-021-0/+69
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@352 e03df62e-2008-0410-955e-edbf42e46eb7