9108 Commits

Author SHA1 Message Date
w00t
a6d924bf70 Fixes bug #655: National characters support, patch written mostly by 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
2009-01-22 15:14:22 +00:00
w00t
6a88b90b03 Fix bug #659, #524 and others: Allow operoverride to set +qa. Based on patch 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
2009-01-22 15:02:37 +00:00
w00t
c68d2cb200 Fix bug #678 reported by Ankit (opertype invex wasn't working, as I failed and forgot to hook the damn event.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10978 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-22 14:17:24 +00:00
w00t
93f7ee5268 Tone down some logging to make debugging a tiny bit easier.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10977 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-22 14:17:22 +00:00
w00t
ad3825303f Small fix: don't set default modes when joining if usercount == 0, set if it 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
2009-01-22 14:17:15 +00:00
w00t
ee80c15846 Revert "Check nickname validity on introduction, closes bug #682 reported by 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
2009-01-22 13:51:35 +00:00
w00t
02cdc2adcd Check nickname validity on introduction, closes bug #682 reported by danieldg (thanks).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10974 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-21 17:19:20 +00:00
brain
fa70e33607 Hmm, why didnt this go through before?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10973 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-18 20:10:12 +00:00
w00t
1cb625e2a2 Missed one, thx peavey!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10972 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-18 13:12:22 +00:00
w00t
8e0a882551 Fix what should have been the (real) problems with kqueue, so far so good 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
2009-01-18 12:19:01 +00:00
w00t
b7bc2a2077 Revert "Revert some of w00ts kqueue massacre from september, for some reason 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
2009-01-18 12:19:00 +00:00
w00t
131870d884 Fix bug #673, reported by Ankit: various cosmetic issues with filter. Patch from Ankit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10969 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-18 12:18:59 +00:00
w00t
c3f5313267 Fix bug #680, reported by Namegduf: 1.2 SHUN does not respect the notifyuser 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
2009-01-18 12:18:58 +00:00
w00t
cc27a371b2 Fix a small typo in shun notice, reported by Ankit. Closes bug #666. (!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10967 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-18 12:18:54 +00:00
brain
ee5cd9fa66 Fix for bug #679 reported by Namegduf, based on suggestion for fix by dz, thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10966 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-17 20:03:38 +00:00
brain
7cf9e842f4 Prevent snotices being sent out for a completely empty mode
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10964 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-15 23:42:33 +00:00
brain
bf026ad679 Bad check on getstatus() found by Ankit, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10963 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-15 19:32:45 +00:00
brain
192de56600 This is more accurate. #ifndef __FreeBSD__, #else, #endif
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10962 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-14 19:28:58 +00:00
brain
d13dd19906 This should work, but not sure on these defines in poll socketengine
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10961 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-14 18:54:07 +00:00
brain
33457adb68 Revert some of w00ts kqueue massacre from september, for some reason its not 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
2009-01-14 18:45:03 +00:00
w00t
b1b62edd3c Fix incorrect classname in operinvex (not broken, just wrong code)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10959 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-10 17:54:49 +00:00
dz
653d62ddc0 Fix bug #665 reported by Ankit, m_services_account.so was denying its own mode change on nick change.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10958 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-10 17:20:34 +00:00
peavey
84af5345c1 Remove channel::created as its unused and only serves to confuse (see last 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
2009-01-09 20:51:38 +00:00
peavey
92796ffe64 Change /CHECK <#channel> to correctly report timestamp since it might have been TS synced after creation.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10954 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-09 20:37:03 +00:00
dz
0268121676 Correctly match alias formats (was backwards) and avoid going on to other 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
2009-01-09 01:12:46 +00:00
brain
399e941c22 Readability: pointless construct of a std::string from another std::string for throwing an exception
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10952 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-07 18:36:20 +00:00
w00t
6b3c06f84c Fix an incorrect check leading to backwards functionality, closes bug #663 (hideoper not working), reported by liato.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10950 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-07 10:15:40 +00:00
brain
ff7e4427b3 Friendlify error message here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10948 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-04 19:34:03 +00:00
dz
b81ab1f1cd Fixed behavior of KICK in m_auditorium, fixes bug #649 reported by Schiz0.
Also replaced usage of Channel::WriteAllExcept() with WriteAllExceptSender()
as the former does not except the sender and requires an extra unused variable.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10944 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-04 03:52:20 +00:00
brain
b811ecdafa This is out of date, useless, and nobody updates it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10943 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-04 03:35:49 +00:00
w00t
6f7164eb0a Fix for bug #652, reported by Ankit: blank reply from /userip with no target online. Thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10941 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-03 17:27:55 +00:00
w00t
67b482682e Remove +o from users on deoper, plausible fix for bug #653 reported by Ankit. Let me know if it's still b0rked, please :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10940 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-03 17:25:10 +00:00
w00t
41bcf2c5a4 Remove extra 'i'.. oopsie :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10939 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-03 16:45:55 +00:00
w00t
bbce9d1247 Remove silly comment from r10,000.. mostly just testing vim..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10938 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-03 16:45:54 +00:00
peavey
193d40378f Fix old typo.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10936 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-03 06:16:13 +00:00
brain
31407a3b9e ...and make it not go querying modules that dont implement the right interface and cause it to crash :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10935 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02 23:26:54 +00:00
brain
7fdb199071 If a module is loaded after m_spanningtree that it needs, then it will now re-read its configuration file. The code is also now in the right place to pick this up on rehash too not just on load.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10934 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02 23:15:09 +00:00
w00t
0aac6a2b2a Branch merge
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10933 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02 18:45:12 +00:00
w00t
43847ec9c7 Update copyrights for 2009.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02 18:16:05 +00:00
peavey
4e6997fddf Fix typo opermoth -> opermotd. Thanks Ankit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10931 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02 16:03:42 +00:00
peavey
ea5245d625 Make it optional to show opermotd on /OPER, defaults to showing the motd if not specified.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10930 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02 15:59:02 +00:00
brain
5ea3005897 Change numeric 671, starttls failure to 691. 671 conflicts with unreal's ssl user numeric. It's documented on our wiki as 'kineircd' but kineircd was never even realeased, so we cant go on that, we'll go with what the unreal numeric says.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10928 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-31 13:00:01 +00:00
brain
b0546ed55e Fix bug spotted by KingTarquin, if an empty string is given to /stats with "STATS :", then a byte of undefined memory in a std::string object is read as the stats char. Probably unsafe.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10927 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-28 22:18:49 +00:00
w00t
376a2833d9 Change a few bits to use std::list instead of std::vector.
Vector is better than list, unless:
 - you require random access (these don't)
 - you require that the memory they are stored in are contiguous (these don't)
This will save a couple of bytes here and there perhaps (along with
much less problems with memory fragmentation and allocation).

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10923 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-28 03:27:28 +00:00
w00t
98632e1ba4 Modify STARTTLS error message to clarify that it may not be sent after registration has commenced.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10922 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-28 02:29:10 +00:00
w00t
0f4dd92954 Fix unnecessary use of map, set is better suited.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10921 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-27 13:52:37 +00:00
w00t
dcec1cca17 Fix a comment too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10920 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-27 13:46:54 +00:00
w00t
dcf958f42b Use std::set instead of std::map needlessly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10919 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-27 13:34:52 +00:00
w00t
c2ea19643b Mark a member static so it isn't exported needlessly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10918 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-27 13:34:51 +00:00
w00t
97cc4bf672 Place CRT debug defines in win32wrapper.h, so they are defined everywhere. This was also incorrectly inside an ifndef WINDOWS, and hadbeen for a while. (oops.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10917 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-27 03:18:51 +00:00