summaryrefslogtreecommitdiff
path: root/src/modules
AgeCommit message (Collapse)Author
2006-10-17Add a ton of comments to make this much more useful now (putting it all in a ↵brain
class essentially forward-declares the lot and gives opportunity to comment) remove 'using namespace std' which we dont need. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5490 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-17Brain->GoToTownOnThisModule().brain
There is now NOTHING in the global namespace in this module. it's all passed around by class pointers, keeping the exported namespace clean git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5489 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-17Finally take ServerInstance out of the global scope in this module, amongst ↵brain
a ton of other stuff. Put it all into a class called SpanningTreeUtilities and pass this class around when constructing new objects. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5488 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Allow * in override to mean all tokens in 1.1brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5485 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Always allow a user to dcc themselvesbrain
Only return CMD_SUCCESS when a user is added or deleted, theres no use in propogating HELP or LIST git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5483 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Idea from nenolod, dont allow you to add yourself to your own dccallow list (!)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5482 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Make parameter count checks more readablebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5481 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Fix checks on duration, this isnt valid, you cant compare a char* as an int:brain
else if (parameters[1] == 0) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5480 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Update syntax help to include HELP and LISTbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5479 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16you can't compare userrec::nick with ==, its a char[] buffer...brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5478 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16if (dl) { do_something() } else { delete dl; } ???brain
no no no, you cannot delete null pointers! :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5477 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Indents all fixed, its all tabs now. Next person i see using spaces is going ↵brain
to get clobbered with the wide end of a tennis racket! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5476 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16More crashbug fixage, half way through indent fixbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5475 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16This compiles again now -- would have been very unstable in its old state ↵brain
(oopsy) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5474 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16ReadFlag, oopsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5473 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16AURGH 4 space indents :/brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5472 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16GACK! you cannot ConfigReader::ReadValue to a const char*! you need to read ↵brain
to a string :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5471 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Fix: DCC types (CHAT/SEND) are case insensitivebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5470 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-161. Tidy up craq (two strcmps, lowercase and uppercase? use strcasecmp)brain
2. TABS AND ONLY TABS not eight spaces! :P (or fear the wrath of om and w00t) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5469 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Add m_dccallow module and detail configuration in inspircd.conf.examplejamie
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5468 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-12Only tick the timer when there are people doing /LIST, as suggested by specialbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5461 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-11Fixed a crash when unloading m_safelist (timers weren't properly tracked to ↵special
be deleted). Someone should seriously consider rewriting this module, or at least seriously overhauling it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5460 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-09Fixed percentage in m_tline (division was backwards, so it displayed 200% ↵special
instead of 50%) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5459 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-08Update commentsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5458 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06/me thwaps special for not reading comments :pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5445 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Make this module propogate remote modes by directly calling the MODE command ↵brain
handler rather than using SendMode which would also require spanningtree metadata git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5444 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Document more classesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5435 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Document a ton of classes (e.g. give them a short description for ↵brain
http://svn.inspircd.org/docs/annotated.html) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5434 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Update to support modular prefixes, and eliminate some string copyingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5432 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Optimize some morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5431 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06...and actually take out the +i restrictionbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5430 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Backport improved NAMES code into m_spybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5429 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Tidy up strlens which are not requiredbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5428 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Tidy up m_safelist to avoid strlen on every line output, we're strlen()ing a ↵brain
constant-ish string so instead record the value for later use. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5425 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-05Report invalid command name when invalid command is given in negotiation phasebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5424 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-05Remove some annoying debugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5423 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-05Fixed freeing of bound sockets when unloading spanningtreebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5422 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-05Was checking 'channel', not 'dest'.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5421 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-05Remove VF_STATIC from spanningtree and make a clever destructor to close and ↵brain
free all its open sockets. In theory this will make insp split from everything neatly when you unload spanningtree. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5418 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-05Add <options:announcets> to output the "TS for #chan changed from 1111 to 2222".brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5417 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04Eugh. Revert change InspIRCd::Time() -> time()jamie
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5416 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04Check for non-existent channel in FMODEbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5415 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04Fix jamies fix (you cant strcpy to a char* pointer, without first allocating ↵brain
some memory!) -- made it char newident[MAXBUF]. Added extra fixage for when the ident module gets 'connection refused' right away, this also prepends the ~ properly too now git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5413 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04Fix for bug#159 reported by SiliconAI (unloading causes crash, it neglects ↵brain
to remove its timer) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5412 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04Nickname collisions were broken! :Obrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5410 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04*slaps* jamie for not using tabs to indent ;-pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5409 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04Prepend ident with '~' if we get no responsejamie
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5408 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-03Someone review the comments i put in from line 1515 onwards, and see if ↵brain
theyre legible and make FJOIN understandable? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5407 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-03Tidyup (remove casts) and commenting FJOIN a lot, so that others can fix ↵brain
stuff that breaks (if it breaks) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5406 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-03Fake direction check in FJOIN on all users, plus tidyup of the code that ↵brain
forms the modeline for giving them their privilages git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5405 e03df62e-2008-0410-955e-edbf42e46eb7