aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* We already have an error for not enough params to the SERVER command, but ↵Gravatar brain2009-01-311-2/+2
| | | | | | the error is 'missing SID'. This error can be seen in snomask +l and is sent as ERROR to the connection. Changed to 'Not enough parameters for SERVER command', fixes bug #661 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11014 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove an incorrect commentGravatar w00t2009-01-281-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11013 e03df62e-2008-0410-955e-edbf42e46eb7
* Note to self, cast time_t to long int for printf... thanks Ankit for ↵Gravatar dz2009-01-285-9/+9
| | | | | | pointing this out. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11012 e03df62e-2008-0410-955e-edbf42e46eb7
* Make xline expiry messages a bit clearer that the xline may have expired a ↵Gravatar dz2009-01-285-9/+9
| | | | | | while ago, and give the correct time since they were set instead of the duration. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11011 e03df62e-2008-0410-955e-edbf42e46eb7
* Credits updates.Gravatar w00t2009-01-272-7/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11009 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix the poll socketengine to actually work.Gravatar psychon2009-01-271-30/+79
| | | | | | | | | | | The old implementation tried to use holes for unused entries in the array for poll() and the OS replied with POLLNVAL to which we replied with 100% CPU. Improvements: - It does compile! - It works git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11008 e03df62e-2008-0410-955e-edbf42e46eb7
* Check line expiry when touching an xline, to prevent huge buildup of stale ↵Gravatar w00t2009-01-271-12/+9
| | | | | | lines chomping CPU. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11007 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow +l 0 (for +PlL #newchan).Gravatar w00t2009-01-251-9/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11006 e03df62e-2008-0410-955e-edbf42e46eb7
* This can't be case sensitive because it's not consistant, and also would ↵Gravatar w00t2009-01-251-1/+1
| | | | | | break having two extbans of differing case but same letter on the same mask (+bb m:f M:f). Also found courtesy of Jason. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11005 e03df62e-2008-0410-955e-edbf42e46eb7
* Format this message a little nicer.Gravatar w00t2009-01-251-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11004 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix m_nopartmsg using the wrong extban character in 005, noted thanks to Jason.Gravatar w00t2009-01-251-4/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11003 e03df62e-2008-0410-955e-edbf42e46eb7
* This is more accurateGravatar brain2009-01-252-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11002 e03df62e-2008-0410-955e-edbf42e46eb7
* Properly check if the SSL handshake is completed in m_ssl_gnutls, fixes the ↵Gravatar dz2009-01-252-3/+3
| | | | | | recent issue where connections would hang with nothing recieved on either end until registration timeout. Also reverts r10998. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11000 e03df62e-2008-0410-955e-edbf42e46eb7
* Try this as the ssl crash fixGravatar brain2009-01-252-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10998 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix some spaces as indent and one double space in m_override so that Ankit ↵Gravatar psychon2009-01-241-10/+10
| | | | | | is happy again git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10996 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unneccessary safety loopGravatar brain2009-01-231-7/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10993 e03df62e-2008-0410-955e-edbf42e46eb7
* Adapt this to syntax guidelines for inspircd, and fix a bug where users whos ↵Gravatar brain2009-01-231-225/+211
| | | | | | nicks are currently a uid will be quit if this module unloads git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10992 e03df62e-2008-0410-955e-edbf42e46eb7
* Templateise thisGravatar brain2009-01-234-76/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10991 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix m_nationalchars using a copy and paste of my unsafe copy and paste ↵Gravatar brain2009-01-235-37/+28
| | | | | | | | | algorithm, that will lock up if the string to replace contains the string to search for. Finally make this function a core utility function and remove the copies from 3 modules m_alias m_nationalchars and m_sqlauth git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10990 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove an unused event.Gravatar w00t2009-01-231-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10989 e03df62e-2008-0410-955e-edbf42e46eb7
* Add $gecos, $ident, $server, $uuid vars for building possible auth queries. ↵Gravatar brain2009-01-221-0/+4
| | | | | | These are the 1.2 equivalent of sqlauth:useident, and more. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10987 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug found by danieldg, where remote nicks were truncated to NICKMAX, ↵Gravatar brain2009-01-221-5/+5
| | | | | | | | | | but NICKMAX can now vary from server to server, so only truncate the nickname for local nicknames. For remote nicknames, allow any length nickname up to MAXBUF (the max length of an IRC line) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10984 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #686, include sysctl.h in a freebsd-specific ifdefGravatar brain2009-01-221-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10983 e03df62e-2008-0410-955e-edbf42e46eb7
* Update copyright date.Gravatar w00t2009-01-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10982 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a small warning (char being used as array subscript) by just using int ↵Gravatar w00t2009-01-221-1/+1
| | | | | | instead. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10981 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes bug #655: National characters support, patch written mostly by ↵Gravatar w00t2009-01-221-0/+404
| | | | | | Phoenix, bits of core support by myself. This means that nicknames using *non ASCII* are now supported when configured, and more importantly, that /msg lowercasenick will go to a person with UPPERCASENICK in foreign character sets. The locale setting MUST be the same network-wide. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10980 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug #659, #524 and others: Allow operoverride to set +qa. Based on patch ↵Gravatar w00t2009-01-223-4/+55
| | | | | | by Phoenix. Note that this is currently untested, feedback is very welcome. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10979 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug #678 reported by Ankit (opertype invex wasn't working, as I failed ↵Gravatar w00t2009-01-221-2/+2
| | | | | | and forgot to hook the damn event.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10978 e03df62e-2008-0410-955e-edbf42e46eb7
* Tone down some logging to make debugging a tiny bit easier.Gravatar w00t2009-01-221-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10977 e03df62e-2008-0410-955e-edbf42e46eb7
* Small fix: don't set default modes when joining if usercount == 0, set if it ↵Gravatar w00t2009-01-221-2/+6
| | | | | | was actually created locally - this is needed due to +P. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10976 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert "Check nickname validity on introduction, closes bug #682 reported by ↵Gravatar w00t2009-01-221-5/+0
| | | | | | | | | | danieldg (thanks)." This broke stuff. This reverts commit 4d29ae6cc6c4f5ba410b58cc0807f018484f6447. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10975 e03df62e-2008-0410-955e-edbf42e46eb7
* Check nickname validity on introduction, closes bug #682 reported by ↵Gravatar w00t2009-01-211-0/+5
| | | | | | danieldg (thanks). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10974 e03df62e-2008-0410-955e-edbf42e46eb7
* Hmm, why didnt this go through before?Gravatar brain2009-01-181-2/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10973 e03df62e-2008-0410-955e-edbf42e46eb7
* Missed one, thx peavey!Gravatar w00t2009-01-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10972 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix what should have been the (real) problems with kqueue, so far so good ↵Gravatar w00t2009-01-181-4/+3
| | | | | | for me.. this *does* need more testing though. Fix spotted by dz (check .filter, not .flags, and don't try to use it as a bitmask). TOR, ratbox, and similar projects use code like this, so I am fairly confident it is ok. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10971 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert "Revert some of w00ts kqueue massacre from september, for some reason ↵Gravatar w00t2009-01-181-2/+4
| | | | | | | | its not too stable, e.g. placing wantwrite sockets into oneshot wantread? :P" This reverts commit 11302829a008263dc306d08d675ad49d7d3f62ab. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10970 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug #673, reported by Ankit: various cosmetic issues with filter. Patch ↵Gravatar w00t2009-01-181-4/+8
| | | | | | from Ankit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10969 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug #680, reported by Namegduf: 1.2 SHUN does not respect the notifyuser ↵Gravatar w00t2009-01-181-1/+2
| | | | | | option, and always notifies the user that their command was blocked. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10968 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a small typo in shun notice, reported by Ankit. Closes bug #666. (!)Gravatar w00t2009-01-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10967 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #679 reported by Namegduf, based on suggestion for fix by dz, ↵Gravatar brain2009-01-172-4/+4
| | | | | | thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10966 e03df62e-2008-0410-955e-edbf42e46eb7
* Prevent snotices being sent out for a completely empty modeGravatar brain2009-01-151-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10964 e03df62e-2008-0410-955e-edbf42e46eb7
* This is more accurate. #ifndef __FreeBSD__, #else, #endifGravatar brain2009-01-141-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10962 e03df62e-2008-0410-955e-edbf42e46eb7
* This should work, but not sure on these defines in poll socketengineGravatar brain2009-01-141-3/+21
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10961 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert some of w00ts kqueue massacre from september, for some reason its not ↵Gravatar brain2009-01-141-4/+2
| | | | | | | | | too stable, e.g. placing wantwrite sockets into oneshot wantread? :P randomly uses 100% cpu with the newer code, seems kqueue doesnt quite like to work exactly the same as epoll and poll. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10960 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix incorrect classname in operinvex (not broken, just wrong code)Gravatar w00t2009-01-101-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10959 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug #665 reported by Ankit, m_services_account.so was denying its own ↵Gravatar dz2009-01-101-2/+2
| | | | | | mode change on nick change. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10958 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove channel::created as its unused and only serves to confuse (see last ↵Gravatar peavey2009-01-091-4/+2
| | | | | | commit to m_check). As a bonus saves memory usage :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10955 e03df62e-2008-0410-955e-edbf42e46eb7
* Change /CHECK <#channel> to correctly report timestamp since it might have ↵Gravatar peavey2009-01-091-2/+2
| | | | | | been TS synced after creation. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10954 e03df62e-2008-0410-955e-edbf42e46eb7
* Correctly match alias formats (was backwards) and avoid going on to other ↵Gravatar dz2009-01-091-5/+10
| | | | | | aliases if none match. Fixes bug #668 reported by Ankit, thanks. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10953 e03df62e-2008-0410-955e-edbf42e46eb7
* Readability: pointless construct of a std::string from another std::string ↵Gravatar brain2009-01-071-1/+1
| | | | | | for throwing an exception git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10952 e03df62e-2008-0410-955e-edbf42e46eb7