summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add an fflush() call after logging, hopefully fixes the issue with delayed ↵Gravatar w00t2006-07-011-0/+3
| | | | | | logging on low activity. Reported by Rob from Anope. git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4092 e03df62e-2008-0410-955e-edbf42e46eb7
* Pointer safety for Write* functions (check the local user exists in the ↵Gravatar brain2006-06-241-28/+30
| | | | | | fd_ref_table as a safety measure before attempting to use their user pointer) git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4055 e03df62e-2008-0410-955e-edbf42e46eb7
* If the <ALLOW> or <DENY> tag specifies an ip, and this user resolves,Gravatar brain2006-06-121-2/+6
| | | | | | | | then their ip will be taken as 'priority' anyway, so for example, <connect allow="127.0.0.1"> will match joe!bloggs@localhost git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3998 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for mode string getting cut, breaks on some +LGravatar brain2006-06-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3994 e03df62e-2008-0410-955e-edbf42e46eb7
* signal/raise in the sigsegv handler to re-raise the sig for a coredumpGravatar w00t2006-04-281-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3914 e03df62e-2008-0410-955e-edbf42e46eb7
* Test tweak to clarify how channel joins workGravatar brain2006-04-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3902 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup: (unsigned) cast to more explicit (unsigned char)Gravatar brain2006-03-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3746 e03df62e-2008-0410-955e-edbf42e46eb7
* Trivial: ServerPrivmsgAll() sending NoticesGravatar brain2006-03-201-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3743 e03df62e-2008-0410-955e-edbf42e46eb7
* LUSERS oper count was broken and reporting the oper count to always be equal ↵Gravatar brain2006-03-191-1/+1
| | | | | | to the number of users (whoops) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3738 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed a missing reference to chanrec::modesGravatar brain2006-03-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3693 e03df62e-2008-0410-955e-edbf42e46eb7
* *NEEDS TESTING* changed binarymodes to use the custom_modes entriesGravatar brain2006-03-121-31/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3691 e03df62e-2008-0410-955e-edbf42e46eb7
* Start of conversion to const refs for std::strings in module api - A LOT OF ↵Gravatar brain2006-03-111-9/+3
| | | | | | STUFF WONT WORK YET git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3654 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup by making some thing sprintf only once rather than n times (where n ↵Gravatar brain2006-03-111-7/+25
| | | | | | | | | is number of targets) String reference stuff for one function git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3653 e03df62e-2008-0410-955e-edbf42e46eb7
* Another const reference conversion, and remove redundant declaration of ↵Gravatar om2006-03-101-1/+1
| | | | | | userrec* Find() from globals.h git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3633 e03df62e-2008-0410-955e-edbf42e46eb7
* patch <inspircd-userlist-ptr-safety.diff (Thanks nenolod)Gravatar brain2006-03-101-13/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3630 e03df62e-2008-0410-955e-edbf42e46eb7
* Typical. 0 and 1 to choose from, and i pick the wrong one. (back to front ↵Gravatar brain2006-03-091-1/+1
| | | | | | binary) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3594 e03df62e-2008-0410-955e-edbf42e46eb7
* Modes the wrong way aroundGravatar brain2006-03-091-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3590 e03df62e-2008-0410-955e-edbf42e46eb7
* (Needs test) Improved userlist()Gravatar brain2006-03-091-8/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3589 e03df62e-2008-0410-955e-edbf42e46eb7
* Added userrec::modebits - fast way of checking if user has +swi rather than ↵Gravatar brain2006-03-091-5/+5
| | | | | | an icky strchr git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed to correctly use iteratorGravatar brain2006-03-091-27/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3583 e03df62e-2008-0410-955e-edbf42e46eb7
* Probably wont compile yet - purge_empty_channels refactorGravatar brain2006-03-091-31/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3579 e03df62e-2008-0410-955e-edbf42e46eb7
* mptr++ not *mptr++!Gravatar brain2006-03-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3578 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix buffer overflow (visible in /mode #channel)Gravatar om2006-03-091-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3577 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed externsGravatar brain2006-03-081-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3561 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is ↵Gravatar brain2006-03-081-1/+6
| | | | | | | | | channel->HasUser(userrec) Yeah its the other way around to the old way, but somehow, seems less backwards to me (its also faster) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3560 e03df62e-2008-0410-955e-edbf42e46eb7
* Got rid of all that ugly char* cast crap (todo: change docs to reflect change)Gravatar brain2006-03-081-93/+66
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3556 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed unneccessary temporary casts to char* when casting a userrecGravatar brain2006-03-081-38/+21
| | | | | | | Expanded on comment re. WriteOpers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3543 e03df62e-2008-0410-955e-edbf42e46eb7
* It's neat. It's tidy. It has no spaces, and almost matches our guidelines...Gravatar w00t2006-03-081-877/+1094
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3542 e03df62e-2008-0410-955e-edbf42e46eb7
* Whois typo fixesGravatar brain2006-03-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3525 e03df62e-2008-0410-955e-edbf42e46eb7
* OptimizationsGravatar brain2006-03-071-26/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3517 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved userlist to avoid strlenGravatar brain2006-03-071-6/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3514 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed typoGravatar brain2006-03-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3509 e03df62e-2008-0410-955e-edbf42e46eb7
* *TEST CODE* Faster custom mode set/unsetGravatar brain2006-03-071-12/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3508 e03df62e-2008-0410-955e-edbf42e46eb7
* maxbans fixesGravatar brain2006-03-061-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3495 e03df62e-2008-0410-955e-edbf42e46eb7
* MaxBans -> maxbansGravatar brain2006-03-061-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3494 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidied GetMaxBans to leave the ConfigReader subsystem aloneGravatar brain2006-03-061-11/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3491 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed unneccessary backticks from a copy/pasteGravatar brain2006-03-061-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3489 e03df62e-2008-0410-955e-edbf42e46eb7
* More documentation.Gravatar w00t2006-03-061-7/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3488 e03df62e-2008-0410-955e-edbf42e46eb7
* Yarr, fixed a typo in a comment, yarrGravatar w00t2006-03-061-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3487 e03df62e-2008-0410-955e-edbf42e46eb7
* Added the beginnings of some function documentationGravatar w00t2006-03-061-1/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3486 e03df62e-2008-0410-955e-edbf42e46eb7
* Mode-code rewrite. Might act weird, needs proper testing (that is what svn ↵Gravatar brain2006-03-061-0/+15
| | | | | | builds are for, after all) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3474 e03df62e-2008-0410-955e-edbf42e46eb7
* Added stuff to log() to make it recalculate the time using asctime() less oftenGravatar brain2006-03-021-8/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3426 e03df62e-2008-0410-955e-edbf42e46eb7
* Added charlcat which appends a single char to a char* string (range checked)Gravatar brain2006-03-021-2/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3416 e03df62e-2008-0410-955e-edbf42e46eb7
* BanHidingGravatar brain2006-02-281-9/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3384 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind fixesGravatar brain2006-02-261-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3353 e03df62e-2008-0410-955e-edbf42e46eb7
* FixedGravatar brain2006-02-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3275 e03df62e-2008-0410-955e-edbf42e46eb7
* Added second form of find() taking const char*, which is faster in the core ↵Gravatar brain2006-02-211-0/+12
| | | | | | where char* is used more often git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3273 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved speed of Find() by passing reference to std::string instead of ↵Gravatar brain2006-02-211-1/+1
| | | | | | std::string itself git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3272 e03df62e-2008-0410-955e-edbf42e46eb7
* Apparently to catch descendent classes we need to catch a reference to the ↵Gravatar brain2006-02-191-7/+7
| | | | | | parent, not the parent itself git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3242 e03df62e-2008-0410-955e-edbf42e46eb7
* Added exception handling for module loadingGravatar brain2006-02-191-7/+57
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3240 e03df62e-2008-0410-955e-edbf42e46eb7