6253 Commits

Author SHA1 Message Date
brain
098776a681 Upstream patch from <mm@freebsd.org>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7281 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-12 16:23:32 +00:00
brain
dc83545a0c This breaks stuff. We can't use it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7280 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 23:14:44 +00:00
brain
6d0a26f759 Whoops, that was silly, the double print thing wont compile for any other OS but windows!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7279 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 22:58:09 +00:00
brain
db0c7fae77 Fix double printing of 'setting log file' and 'setting config file' paths.
Add comment about not using direct pointer from GetCommandLine()


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7278 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 22:56:53 +00:00
brain
a25765a1cf We need to pass a copy of GetCommandLine() not the actual return pointer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7277 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 22:30:56 +00:00
brain
9ee2d5ec71 Tweak some tabular declarations to look correct on 8-width tabs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7276 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 22:16:17 +00:00
brain
185829f827 Woo, fixed the bug, win2k doesnt like the AUTHZ_LEVEL stuff :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7275 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 22:05:25 +00:00
brain
f5be089c4a Fixed commandline stuff for CreateProcess, but it looks like win2k doesnt like that AUTHZ const. Commented it out for now till burlex comes up with a solution
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7274 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 21:51:22 +00:00
burlex
fccc2136b8 * Changes to userprocess functions to allow flood limit removal by m_operflood.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7273 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 21:39:09 +00:00
brain
13be12c812 Prompting for wether or not to wipe the .h and build from clean (default to no)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7272 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 21:06:17 +00:00
brain
4a0a02a4ef Change from /GS to /Gm in makefiles
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7271 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 20:54:30 +00:00
burlex
9a9a39c978 - Added more debug output to windows fork in order to help debug problems encountered.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7270 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 20:35:28 +00:00
brain
895c3dcdf0 Put the check back so we dont keep doing builds from scratch every time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7269 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 20:34:47 +00:00
brain
71b9ae263d The spelling nazis are amongst us!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7268 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 20:11:08 +00:00
brain
2c8326894a Remove unused var
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7267 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11 20:04:16 +00:00
burlex
d83f5766b8 - Removed un-needed event create at windows fork.
* Fixed command line arguments when using fork under windows.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7266 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09 23:20:42 +00:00
frostycoolslug
68531a8197 Fixed issue preventing startup without --nofork under win32
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7265 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09 23:10:39 +00:00
brain
52acbb466b A ton more clear() and empty() stuff thats been lingering on the long term todo for too long a term :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7264 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09 12:32:34 +00:00
brain
0161215f42 Change some = "" to clear() and some == "" to .empty()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09 12:10:12 +00:00
brain
3936814ac6 Note to devs: We should be using std::string::clear() to empty a std::string, NOT somestr = "". somestr = "" involves a pointless memory allocation and
assignment then de-allocation, whereas clear() just sets the length to 0.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7262 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09 12:02:35 +00:00
burlex
48d672de13 - Enabled minimal rebuild on all VS project files, this will reduce build time on small changes, also removed the -Auto configurations as they are no longer used.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7261 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 23:02:40 +00:00
w00t
890e00d595 Enable SNOMASK 'K' (remote kill), and use it in cmd_kill. This has the side effect of hiding kills from a server prefix at the moment as they work differently (ugh).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7260 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 21:53:28 +00:00
burlex
7cca9f5d93 - Eek, gotta make it look the same as *nix! Windows will now print the process id of the new "forked" process.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7259 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 21:44:30 +00:00
burlex
07120e5d4e - Whoops.. forgot a return here.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7258 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 21:37:30 +00:00
burlex
9ffa5e97fe * Changed forking code, now the parent will attempt to retrieve the exit code of the created process if startup fails for some reason.
. Exit code 14 means the creation of the forked process under windows failed.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7257 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 21:35:14 +00:00
burlex
888778c5fa * Fixed VC8 m_spanningtree project file. second commit?! :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7256 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 21:20:43 +00:00
burlex
548162d094 + Added an *almost* unix-like fork system for windows. Insp will create a secondary process now if nofork isn't specified and pipe its console output back to the originator's. If there is an error during startup, it will show too.
* Fixed m_spanningtree project (cmd_rsquit was missing)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7255 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 21:17:17 +00:00
w00t
69d081ad2b Add Burlex to developers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7254 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 16:42:04 +00:00
w00t
d5d025ad7c Make this message slightly more meaningful, as discussed in .coders a while back
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7252 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08 09:57:20 +00:00
peavey
8509446891 Add command /RSQUIT to spanningtree.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7251 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-07 20:54:06 +00:00
brain
4eaa390776 Comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7250 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-06 20:51:29 +00:00
brain
7fb9621053 Add back remote kill handler for server origin kills
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7249 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-06 17:22:44 +00:00
w00t
315c7e7484 Patch fixing (almost) remote kill server notices, by just passing KILL onto cmd_kill and not attempting to duplicate code for it in spanningtree. Dev: Two small issues are left with this, see comments in cmd_kill.cpp. Thanks, HiroP.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7248 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-06 14:43:25 +00:00
w00t
dabc065879 Be a little nicer.. this die error is funny, but confusing (got me once too)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7247 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-06 11:38:53 +00:00
brain
2885e18dcb Same here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7246 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 21:40:33 +00:00
brain
f65debb46e Same here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7245 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 21:39:22 +00:00
brain
738cde7f2a Minor url tweak
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7244 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 21:36:59 +00:00
brain
41b1c64889 Update ancient copyright header
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7243 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 21:36:18 +00:00
w00t
80fceca516 List developer arguments (debug, screendebug etc) so they don't need to be looked up
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7242 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 21:34:17 +00:00
brain
c2993f666f Sexeger!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7241 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 17:39:36 +00:00
brain
d2717df5ef InspIRCd: Now with even MORE leet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7240 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 17:25:41 +00:00
brain
adf372651c Comments here, too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7239 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 16:52:24 +00:00
brain
4381bb63f5 Add comment to what the table here is for
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7238 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 16:50:23 +00:00
brain
d396355d3e Refactored InspIRCd::Duration(). The leetcode now lives!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7237 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 16:49:06 +00:00
brain
1b93cf63e3 Configure ldlibs patch by djGrrr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7236 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 16:10:28 +00:00
brain
78f98065d5 Stdint being included when we dont even use it, without checking HAS_STDINT, thanks djGrrr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7235 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 16:08:44 +00:00
peavey
234c7cd851 Fix typos found by Zaba. Thanks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7234 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 07:49:33 +00:00
peavey
7cbbb97f42 If the whowas maps really do fail, log it as default and not debug.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7233 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 07:31:26 +00:00
brain
ef048989f8 Add options:moronbanner. Yes really, thats what its called. See the example config.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7232 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-04 19:10:25 +00:00
brain
ae26712ee7 Fix windows issue locating some files relative to the conf dir (namely motd, rules, quotes), See: http://www.inspircd.org/forum/showthread.php?t=989&page=2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7231 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-04 18:39:22 +00:00