6077 Commits

Author SHA1 Message Date
w00t
c34dd1e50f No fucking point at all checking for CC_DENY twice. \o/.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7200 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 18:53:01 +00:00
brain
993cff8f39 We can make one saving in userrec::WriteWallOps though - we are checking IS_LOCAL inside the loop, we've had a seprate local only user list for god knows how long, we know the users in it are local.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7199 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 18:49:01 +00:00
brain
b117a1ec84 This is a better fix, as it calls the mode handler giving the modules etc chance to allocate structs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7198 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 16:55:00 +00:00
brain
46121d8880 Fix bug found by indigophone where +lk cant be set in defaultmodes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7197 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 16:42:59 +00:00
w00t
d868f0bfb0 Fix USERHOST, thanks click and HiroP
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7196 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 14:39:15 +00:00
brain
7da093a348 Detect BRAINDEAD WINDOWS EDITORS THAT DEFAULT TO SAVING AS UTF-16! When we find out which editor did this, we'll use our retractable baton to teach it the true meaning of portable data.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7195 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-31 20:12:05 +00:00
brain
89738d69bb And remove soem debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7193 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-31 17:43:41 +00:00
brain
7f0de14650 Fix for issue discovered by satmd where it is possible to send an empty string via privmsg or notice to a user target, against the RFC standard. Remote servers don't like this much.
Also fix: NOTICE generates OnUserNotice event, but checks against the I_OnUserMessage hook.
Also also fix (!): Missing colons in "no text to send" message.
BOTH of these also fixes have been around since like, 1.0 alpha 1, and nobody's noticed them!


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7192 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-31 17:43:23 +00:00
brain
6d2fc8eac0 Fix bug #310 reported by Smartys, and optimize mode.cpp a bit (was using string comparison to identify an empty string, e.g. somestr == "", when we can use the much faster somestr.empty())
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7191 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-30 19:41:48 +00:00
brain
2779810ff0 Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-30 17:37:13 +00:00
w00t
c9235e50f4 Fix bug #309 reported by Smartys - QA, please test quickly. Seems okay to me.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7189 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 21:51:34 +00:00
w00t
cd6723e20f Add m_check to example configuration, thanks Potter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7188 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 20:44:01 +00:00
w00t
21e3ab02ef Remove m_conn_lusers from the example conf, fixes bug 308, thanks Smartys
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7187 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 20:39:04 +00:00
brain
6981d78d99 Update this example conf
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7186 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 17:53:23 +00:00
brain
312bd003e1 All the other socketengines have a 1s wait on their 'poll' equivalent. GetQueuedCompletionStatus had a delay of 100ms. Upped to 1s to be more sane and more in line with the other socket engines.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7185 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 16:52:56 +00:00
brain
91f1703ce7 Metaphorically add a metaphorical comment to the metaphorical code. Thank god its not metadata.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7184 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 16:37:13 +00:00
w00t
90550c9c65 Commit multiaccept diff by myself to speed up large numbers of connections.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7183 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 16:35:18 +00:00
brain
c166f246f8 No flags now means all flags when in the config, so that filters defined in older configs are forwards compatible
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7182 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 23:12:01 +00:00
brain
516655d85f This works now! Still more to do though.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7181 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 22:51:56 +00:00
brain
82a62fd8cb Make the flags work
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7180 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 22:42:33 +00:00
brain
ccbf152ca4 Next bit of filter flags system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7179 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 22:28:13 +00:00
brain
5183b9b820 Stuff for flags as requested by djGrr. We aren't going all-out rediculous amount of flags on this, we're sticking with the 5 or 6 easy to remember and lumping oper-immunity into the flags (see forums)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7178 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 22:19:26 +00:00
brain
30904ef950 A flags section for filters. Do not use yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7177 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 20:30:51 +00:00
brain
d12b1c4897 ipv6 ifdef tidyup by djGrrr, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7176 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 18:52:55 +00:00
brain
63c0316722 Display the proper transports for server ports *slap* :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7175 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 15:42:33 +00:00
w00t
cdbf2526f7 Remove code for clientcount/servercount from /stats p. At the moment it was slow, hacky and doesn't totally work properly (bind 2 same ports on diff. ips and watch it get confused ;p). It may be added back in a few versions once we have the infrastructure in place to tie a list of clients to a port.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7174 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 15:22:31 +00:00
w00t
04e35b16d8 Show IPs that a port is bound to in /stats p, don't remove duplicate ports anymore, since we know what IP a port belongs to.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7173 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 15:03:52 +00:00
w00t
0d35904426 Don't return CMD_SUCCESS. This command shouldn't go out on the wire.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7172 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 14:57:32 +00:00
w00t
c0de6310e2 - Add fix for /stats p support (this->port was not being set for listening inspsockets, thanks peavey).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7171 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 13:08:33 +00:00
w00t
351690f240 - Add server ports to /stats p. This doesn't work properly yet as something is not initialising port correctly in a constructor I'd guess. It also does not enumerate connected servers to see how many connected on a given listener yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7170 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 12:38:20 +00:00
w00t
6a98cb1ccb Add m_cycle to example configuration
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7169 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 13:24:21 +00:00
w00t
0306a4231e Add m_cycle: server-side equivilant of /hop, except it overrides +ilk. For the curious, this module took me under 5 minutes to write. (you said you didn't have time Naz? :P)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7168 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 13:20:30 +00:00
brain
c1940afc5f Fix for bug #305, allow admin to select what port outbound ident requests bind to
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7167 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 13:13:55 +00:00
brain
8ffa149aa1 Add config example, and allow options:defaultmodes="" so that people can have no default modes if they want.
Default in the example config is 'nt'. 
SIDENOTE: Someone really needs to tidy up <options> in 1.2


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7166 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 12:08:51 +00:00
brain
5b6462f4f6 ...and remember the parameters ;)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7165 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 12:06:23 +00:00
brain
cd7657bddc We were already sending FMODE +nt after each channel creation to keep services happy, just change this to send the servers default modes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7164 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 12:05:23 +00:00
brain
4a50237d63 Config option for default channel modes -- more to follow, don't use yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7163 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 12:02:10 +00:00
brain
140b01ba49 Whoops, ++it++? Thats gonna break :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7162 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 11:30:41 +00:00
brain
7974f6d315 Another for bug #307
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7161 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 11:29:24 +00:00
brain
bd818bec49 Change for reverse output of lists, most recent first, for bug #307. Also fix(Oms) annoying(Cuddled(Ifs()))
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7160 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-27 11:28:18 +00:00
brain
8541ef7d98 pah, bully to you, mister posix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7159 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 20:18:03 +00:00
brain
b86a95c701 This should do it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7158 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 20:10:53 +00:00
brain
b4f3cb5c4b Works for me now, please test
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7157 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 20:03:12 +00:00
brain
f95aa1c2c5 Brok.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7156 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 19:58:19 +00:00
brain
3cb0d3f0f8 Dunno why this method was static, doesnt need to be...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7155 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 19:54:15 +00:00
brain
5e14a1bbf4 w00t please review, line 1603 configreader.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7154 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 19:51:24 +00:00
w00t
2023652459 - Update our long suffering example MOTD :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7153 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 18:28:03 +00:00
brain
b53f298254 Use the example rules and motd in the default config
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7152 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 18:18:54 +00:00
brain
120a5c9d1a Do we have any Venezuelan Beaver Cheese? ... Why yes, we do. :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7150 e03df62e-2008-0410-955e-edbf42e46eb7
v1.1.8
2007-05-26 14:40:52 +00:00
brain
3ad40b22a7 Installer was defaulting the dir to c:\program files\inspircd and wouldnt present the user with an option to change. This is a BIG no-no and needed to be fixed before release.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7149 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26 14:29:24 +00:00