5938 Commits

Author SHA1 Message Date
w00t
8f06b469e4 Change to IS_OPER, also modify to use short circuit evaluation (simple char check is quicker than ReadFlag no doubt)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6997 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 20:41:24 +00:00
w00t
15daa40087 Opers cannot change the modes of others. (In retrospect, a mass commit of these would have been better, but I'm working on another mass commit.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6996 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 20:38:42 +00:00
w00t
ccf07e073a Opers cannot change the modes of others.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6995 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 20:36:11 +00:00
w00t
7380557b16 Small thing, but check for IS_OPER(source) too, just in case someone crazy writes a module that lets users kill people. I'm not sure what would happen here otherwise.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6994 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 20:34:10 +00:00
w00t
aa806be185 Opers cannot change the modes of others
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6993 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 20:28:40 +00:00
w00t
8006da76e0 Opers cannot change the modes of others
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6992 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 20:27:39 +00:00
w00t
82fc993800 This catch doesn't need to be here. :o
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6991 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 17:58:59 +00:00
w00t
e6fa614ad2 We've had an IS_OPER macro for a long time. About time we started using it, maybe? :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6990 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 16:22:35 +00:00
w00t
cf83d91822 Fix compile error.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6989 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 16:03:25 +00:00
w00t
43dfa9b50d Make this use SendError rather than rolling it's own. Fun fact: this notice was always broken, as it send the nick, user, host of the oper it was *sending* to, not the nuh of the oper issuing the die.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6988 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 15:58:30 +00:00
w00t
fe04cdd9dc Remove the char junk here, use an std::string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6987 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12 15:52:55 +00:00
brain
3a60fed191 Make sure we always use the correct index for the nickname (thanks djGrr)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6986 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 21:24:20 +00:00
w00t
432b306797 Remove some stuff deprecated since 1.0
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6985 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 20:00:20 +00:00
brain
16d94ef4c6 Allow removal of client ports from the config file via rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6984 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:56:22 +00:00
brain
b830319a5c Thou shalt test compile before committing :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6983 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:38:37 +00:00
brain
bfcaef8623 Refactor port binding, warning not yet tested fully
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6982 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:38:00 +00:00
w00t
b469531385 (Pretend the last commit never happened.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6981 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:22:44 +00:00
w00t
0635391ceb Change the text of the 461 on invalid ident. Technically, this is correct, but nobody else respects this. Also, the numeric is the important bit, not the text. Now a little more nub friendly. :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6980 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:20:51 +00:00
w00t
df54ef0105 One of my XXXs done, tidy logic in here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6979 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:14:12 +00:00
w00t
9c3a20c151 Last commit of that batch: Fix some returncodes (some stuff here really didn't need to be routed), clarify a few in comments, and also add some todos for myself next.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6978 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:09:22 +00:00
w00t
e1f34688d6 Yes, and here too. I want these in seperatly so I can roll them back if I screwed up (somehow)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6977 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:08:28 +00:00
w00t
4f81996085 Logic cleanup here too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6976 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:07:18 +00:00
w00t
187ece1bab Opers haven't been able to change the modes of others since 1.0.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6975 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:05:43 +00:00
w00t
1886d90944 Clear up logic a little here, check error conditions at the top, succeed at the bottom. Little neater :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6974 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:04:53 +00:00
w00t
5ec889c7e5 Make the same (r6972) fix here.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6973 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 17:27:48 +00:00
w00t
30b7ea53bd Remove duplication of conf loading code here. Just call rehash in constructor quietly, like normal.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6972 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 17:25:49 +00:00
w00t
9e8368cd8b Fix a slightly out of date comment (from before the days of the self commenting IS_LOCAL :p)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6971 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 12:11:02 +00:00
brain
ea75fb5c4c Document new tags
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6970 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 21:46:57 +00:00
brain
2b2c61df8e Add <watch maxentries> and <silence maxentries>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6969 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 21:45:16 +00:00
brain
8cc3fd44a6 Attach ident and original username to the metadata of the user, so that it can be retrieved with /taxonomy. Fixes feature request/bug #285.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6968 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 21:02:34 +00:00
brain
276bbd193e Add m_taxonomy and api minor tweak to make it work, enable some modules for it.
I have higher aims for this module, namely a neat fix for feature request in bug #285


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6967 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 20:53:31 +00:00
w00t
f15d73c316 Patch by djGrrr to WHOIS to fix up another potential information leak, now remote and local whois work the same way really :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6966 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 19:01:28 +00:00
w00t
940db85761 Remove redundant if (), pointed out by djGrrr.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6965 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 18:47:59 +00:00
w00t
3d4abe3815 Much thanks to djGrrr for being helpful. Give this a go.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6964 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 18:38:30 +00:00
w00t
52c3941ece FIX: Don't show time for remote clients on /whois nick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6963 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 18:08:32 +00:00
w00t
e8a950b2cf I got very confused here.. let's fix this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6962 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 16:57:22 +00:00
w00t
e272cc53d3 Clarify some of the comments here..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6961 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 16:44:51 +00:00
w00t
edd33ce033 (will be tested like nowish): Modified version of djGrrr's patch to re-fix #286.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6960 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 16:34:29 +00:00
brain
4367b86586 I can do coding, me!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6959 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 16:16:43 +00:00
brain
9b56909a3b Slightly modify WHO <port> p to allow a port range, e.g. "WHO 6660-6669,7000,7001 p" would find all users on ports 6660 thru 6669, 7000 and 7001.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6958 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 16:08:14 +00:00
brain
abdcc7adfa Change some stuff around to make sure metadata/fmode comes after nick list if sent by modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6957 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 15:43:33 +00:00
brain
1becbd4f03 remove EB metadata madness and make services people happy.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6956 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 15:41:11 +00:00
brain
1f2b4e2541 Fix for bug #281, oper fail notices should be global
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6955 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 14:23:16 +00:00
w00t
c64fa61312 Add HiroP to contributors for being such a helpful little gubbins ;>. Congradulations. :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6954 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 14:09:13 +00:00
w00t
b2e82c7d76 Helpop fixes, noted by HiroP, derived from patch by HiroP in bug #291
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6953 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 14:00:18 +00:00
brain
01daa1fc77 Add openssl cert generation prettyness, make it like our gnutls one. It seems that openssl doesnt support templating like gnutls, so we pipe the input in from configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6952 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 13:53:16 +00:00
brain
876f5d3cab Remove pointless debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6951 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 13:24:01 +00:00
w00t
3975734e9c Remove a large portion of commented craq, and make this fit in better with the rest of the source (braces on individual lines etc)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6950 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 12:10:30 +00:00
w00t
0cc42a8eeb Update this to use the new copyright header
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6949 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 12:08:35 +00:00
w00t
7f4aa4e8d7 Add <stripcolor:allowchanops> to allow channel operators to bypass color stripping. Defaults to off. Added to example config. Closes bug #288 :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6948 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 11:33:56 +00:00