brain
0b44d28a31
Templateise this
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10991 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-23 13:40:24 +00:00
brain
a3fb932831
Fix m_nationalchars using a copy and paste of my unsafe copy and paste 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
2009-01-23 13:20:57 +00:00
w00t
4e1ae0981e
Remove an unused event.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10989 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-23 12:58:28 +00:00
w00t
5f5ed857af
Fix bug 688, reported by Ankit: extended invexes don't work correctly at all. Thanks very much for your help tracking this down :)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10988 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-23 10:16:51 +00:00
brain
9bb31e58f8
Add $gecos, $ident, $server, $uuid vars for building possible auth queries. 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
2009-01-22 20:44:10 +00:00
brain
436fad2bf0
Fix for bug found by danieldg, where remote nicks were truncated to NICKMAX, 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
2009-01-22 17:39:50 +00:00
brain
e1bca06658
Fix for bug #686 , include sysctl.h in a freebsd-specific ifdef
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10983 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-22 17:24:54 +00:00
w00t
69f498085c
Update copyright date.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10982 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-22 15:15:05 +00:00
w00t
2a8094c2a7
Fix a small warning (char being used as array subscript) by just using int instead.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10981 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-22 15:14:36 +00:00
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