summaryrefslogtreecommitdiff
path: root/src/modules/m_setidle.cpp
Commit message (Collapse)AuthorAgeFilesLines
* ConversionsGravatar aquanight2008-05-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9628 e03df62e-2008-0410-955e-edbf42e46eb7
* Finally change all the Version() objectsGravatar brain2008-03-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9185 e03df62e-2008-0410-955e-edbf42e46eb7
* Wheeee for HUGE commits. Convert all numerics to WriteNumeric so that ↵Gravatar brain2008-03-221-2/+2
| | | | | | OnNumeric can capture them. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9175 e03df62e-2008-0410-955e-edbf42e46eb7
* Wheee, mass commit! this adds const stafety, throwing a compile error if ↵Gravatar brain2008-02-201-1/+1
| | | | | | | | | anyone does: "parameters[n] = blahvar;" in a command handler etc. where they REALLY SHOULD NOT fuck with the value and should copy the pointer. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8971 e03df62e-2008-0410-955e-edbf42e46eb7
* Slight API tweak. Change Command to take char * instead of char in it's ↵Gravatar w00t2008-02-131-1/+1
| | | | | | constructor, this avoids confusion/generates a compile error if someone mixes up flags with number of params, instead of working but not working as expected in a weird manner. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8918 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix.. snomask O is already taken (ffs) so use A insteadGravatar w00t2008-01-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8729 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd::WriteOpers in favour of snomask OGravatar w00t2008-01-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8728 e03df62e-2008-0410-955e-edbf42e46eb7
* Header update: 2007 -> 2008Gravatar w00t2008-01-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert all to new Attach() system. The Implements() method needs removing ↵Gravatar brain2007-11-041-0/+1
| | | | | | | | | from all modules as it is dead weight. WARNING: there are segfaults here! HERE BE DRAGONS, i am not finished! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8510 e03df62e-2008-0410-955e-edbf42e46eb7
* Another big commit, just to please all my fans out there.. cmd_* -> ↵Gravatar w00t2007-10-211-4/+4
| | | | | | Command*. Muahaha. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8290 e03df62e-2008-0410-955e-edbf42e46eb7
* In the grand tradition of huge fucking commits:Gravatar w00t2007-10-151-1/+1
| | | | | | | | - chanrec -> Channel - userrec -> User Enjoy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
* class command_t -> class Command. Whey :DGravatar w00t2007-10-151-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8203 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a metric assload of TRANSLATE macros to modules.Gravatar w00t2007-08-271-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7892 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unnecessary header trafficGravatar w00t2007-08-271-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7885 e03df62e-2008-0410-955e-edbf42e46eb7
* Add VF_COMMON to a lot modules which require it. Reported by danielg in bug ↵Gravatar w00t2007-08-031-1/+1
| | | | | | #369 and bug #370. Thanks, and sorry for the delay. Also fix one or two erroneous CMD_FAILURE that are more understandable as CMD_LOCALONLY. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7641 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+74
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵Gravatar peavey2007-07-161-74/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed superfluous semicolonsGravatar pippijn2007-07-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7423 e03df62e-2008-0410-955e-edbf42e46eb7
* Support duration to set idletime as well as plain seconds. For you Zaba :>Gravatar peavey2007-06-191-4/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7390 e03df62e-2008-0410-955e-edbf42e46eb7
* ConversionsGravatar w00t2007-06-171-26/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7365 e03df62e-2008-0410-955e-edbf42e46eb7
* Header rearrangement, move inspircd.h to top, remove stdio, stdlib, ↵Gravatar brain2007-05-211-3/+1
| | | | | | | | | stdblahblah that we dont even use, remove redeclared <string>, <map>, <vector>. This (1) fixes the irc::string::move warnings on vc8 (2) speeds up compile a lot git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7098 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-2/+2
| | | | | | step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
* Last commit of that batch: Fix some returncodes (some stuff here really ↵Gravatar w00t2007-05-111-1/+1
| | | | | | didn't need to be routed), clarify a few in comments, and also add some todos for myself next. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6978 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove global namespacing, makes modules compile FASTAH. Also massive update ↵Gravatar w00t2006-12-151-8/+3
| | | | | | on headers (change to InspIRCd Development Team, extend copyright to 2007). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5995 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
* Document a ton of classes (e.g. give them a short description for ↵Gravatar brain2006-10-061-0/+2
| | | | | | http://svn.inspircd.org/docs/annotated.html) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5434 e03df62e-2008-0410-955e-edbf42e46eb7
* Now with binary versioning goodnessGravatar brain2006-10-011-5/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
* And fix it to compile :pGravatar brain2006-09-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5169 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up setidle message sent to opers, to show the actual idle time set if ↵Gravatar brain2006-09-081-1/+1
| | | | | | the oper specifies a bunch of crap as a number git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5168 e03df62e-2008-0410-955e-edbf42e46eb7
* All commands now return results CMD_FAILURE or CMD_SUCCESSGravatar brain2006-09-061-3/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5150 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
* 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-2/+1
| | | | | | | | 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
* FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, ↵Gravatar brain2006-08-101-1/+3
| | | | | | | | | GetClass, WriteOpers, GetServerDescription -> into classes ServerConfig takes InspIRCd pointer in its constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4832 e03df62e-2008-0410-955e-edbf42e46eb7
* WHEEEEE!!!!!Gravatar brain2006-08-081-2/+2
| | | | | | | | | 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
* Add support for syntax of commands in place of the text 'Not enough ↵Gravatar brain2006-07-281-0/+1
| | | | | | | | | parameters' in numeric 461, where supported. To support this each derived class of command_t must set the value of command_t::syntax to a non-empty string. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4561 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
* 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
* Moved to new command systemGravatar brain2005-12-161-13/+24
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2536 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed behaviour of module API to pass Server* to the constructor, rather ↵Gravatar brain2005-12-071-6/+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
* 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
* Moved a ton of functions into helperfuncs.h to speed up recompilesGravatar brain2005-05-151-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1383 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to non-conflicting numeric 948 for invalid idle timeGravatar brain2005-04-131-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1076 e03df62e-2008-0410-955e-edbf42e46eb7
* Added getrlimit/setrlimit to set process limits to allow a core dumpGravatar brain2005-04-111-0/+5
| | | | | | | | Fixed m_setidle to only allow you to set a positive integer as the idle time Removed some logging from wildcard.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1041 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed to not have an idle time greater than the signon timeGravatar brain2005-04-101-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1039 e03df62e-2008-0410-955e-edbf42e46eb7
* Added m_setidle, allows opers to set their idle timesGravatar brain2005-04-101-0/+82
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1038 e03df62e-2008-0410-955e-edbf42e46eb7