brain
1badc2dd1f
Chdir to bin dir on starting, allows relative paths to the bin dir to always work even when we're not started from our dir
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7213 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 16:11:34 +00:00
brain
115c025e67
The code to work out the path seems to work fine now on freebsd and linux, still to test on win
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7211 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 14:38:45 +00:00
brain
0c73dcfdb1
Debug to troubleshoot why this writes the log to the current dir in bsd, not the bin dir where it should
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7210 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 13:45:39 +00:00
brain
920f61414e
Specific windows code for getting the full path to the exe
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7209 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 13:42:55 +00:00
peavey
eb334f8c69
and a little tweak to remote MOTD too.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7208 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 01:58:41 +00:00
peavey
73bd4d4240
same for admin, and fix some returns.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7207 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 01:50:27 +00:00
peavey
e6ce64246b
Fix for bug #297 . /MODULES now correctly finds remote server on wildcard. Marked for QA.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7206 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 01:32:59 +00:00
peavey
858ea80c87
re-apply ipv6 ifdef tidyup that got pulled in last revert.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7205 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 23:00:18 +00:00
peavey
8d7b4f5ead
revert multiaccept for now until we can fix it for win.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7204 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 22:50:17 +00:00
peavey
e430e58c2e
WIN: As promised when I took it out, whowas stats in /STATS z is now working due to fix in r7201.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7203 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 22:34:16 +00:00
brain
3198b0ba77
Fix re-generation of 005 on rehash
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7202 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 21:43:41 +00:00
peavey
77f2c9bb24
Make valgrind happy and not leak mem.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7201 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 20:31:29 +00:00
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
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
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