brain
4f01d9724f
Commit patch by IronLegend, thanks :) -- Fixes bug #298
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7125 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-23 17:37:49 +00:00
peavey
c74e735522
One more with redundant ref to instance. I think this is the last one.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7124 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-23 00:08:26 +00:00
peavey
3a72729e03
Module class has a member ServerInstance, so remove any extra refs still lingering in a few modules.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7123 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22 23:48:50 +00:00
peavey
476e879097
take out whowas stats from stats z until I figure out how to fix it.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7122 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22 21:04:47 +00:00
w00t
244d5df202
- Fix two minor warnings here (catch (ModuleException& e) -> catch (ModuleException), as we're not actually using e). Noted on w32, compiles ok, stab me if it breaks linux (I don't think it will.)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7121 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22 21:02:07 +00:00
brain
18ff73f52b
Bloody 'safe stl' warnings.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7120 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22 20:55:43 +00:00
brain
51c06dcf84
Add comments as to what its doing
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7117 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22 20:41:00 +00:00
brain
428aa50368
Code to find nameservers in the windows registry - largely untested
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7113 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22 20:03:33 +00:00
brain
75f0cba571
Someone forgot the blindingly obvious - APPLY the glines/zlines you add! they dont apply themselves :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7112 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22 19:10:40 +00:00
brain
4cd573260d
This says ten minutes drift and should say five, fixed
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7106 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22 15:54:46 +00:00
brain
972203736b
Squash unused var error
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7103 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 19:54:00 +00:00
brain
812ccef476
Remove warning in gcc this time
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7102 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 19:37:13 +00:00
brain
f43281da9e
I think this was the source of burlex's confusion with the spanningtree propogation bug and a warning in vc8 -- CallCommandHandler returned BOOL?! Yet its casting that bool somehow from a CmdResult.
...
It should be CmdResult. Fixed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7101 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 19:35:07 +00:00
brain
31bef4901b
In this module we declare the md5 context as a class, then reference it in functions as struct MD5Context*.
...
Not only does this make little sense readability wise, it triggers a warning in vs8. Fixed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7100 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 19:28:51 +00:00
brain
1689f51f79
Move inspircd.h to top
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7099 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 19:15:28 +00:00
brain
76d7e8a068
Header rearrangement, move inspircd.h to top, remove stdio, stdlib, stdblahblah that we dont even use, remove redeclared <string>, <map>, <vector>.
...
This (1) fixes the irc::string::move warnings on vc8 (2) speeds up compile a lot
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7098 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 19:13:39 +00:00
brain
11554b8626
Reorder inspircd.h header to top
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7097 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 18:36:25 +00:00
brain
5475b0d469
All non-commands part of the core are now warning clean on vs8
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7096 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 18:31:38 +00:00
brain
46ff0bed00
Same tweak, again
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7095 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 18:27:38 +00:00
brain
b083bc0b66
It seems that making inspircd.h the first include in .cpp files eliminates the warning C4996, as the defines to prevent it are set before any includes that cause it
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7094 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 18:26:15 +00:00
brain
c31a4b8b44
Reorder includes, dont worry there is method to my madness (i hope)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7093 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 18:22:16 +00:00
frostycoolslug
c77bbc1277
Reverted broken patch.. This may break, but it's unlikely :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7090 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 05:53:33 +00:00
w00t
91e46e2371
- Comment on the ifdef in here, to avoid people (like myself) going 'what the fuck'.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7081 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 22:53:57 +00:00
brain
acce38fa84
Crash on restart in win32 fixed.
...
This means that the restart button in the gui, and /restart, both work now.
Note, there are other bugs with the gui's restart button, the 'auto restart on crash' tries to boot the ircd! Dont use it! :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7075 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 20:27:45 +00:00
brain
d4e61c1552
try...catch around the map::insert in AddFd, for some reason it throws sometimes. If it does, we return false, which the core can handle neatly as 'failed to add fd'
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7065 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 14:05:48 +00:00
brain
30a17a7034
Remove asserts and convert to unix line endings
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7064 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 13:58:30 +00:00
w00t
6ab38d48ca
- Modify ServerConfig::GetFullProgDir to just return cwd, previously it did a lot of voodoo that was a little hard to grasp, probably didn't quite accomplish what it should have, and broke on windows.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7063 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 12:54:57 +00:00
brain
c3913b1f2f
Windows path seperator is \, this was assuming /. Fixed.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7062 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 12:38:23 +00:00
w00t
9caa0763a3
- Fix a small warning thrown by cl about unused local.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7061 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 12:15:28 +00:00
brain
0985cef77b
Prevent vc8 from thinking we're dereferencing an end iterator
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7059 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 05:00:03 +00:00
brain
c537fcb35e
Send CHANMODES= and PREFIX= in CAPAB CAPABILITIES.
...
Sorry, if you encounter a server < 1.1.8, youll have to guess by module name.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7055 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20 00:38:29 +00:00
brain
32d9979d48
Fix (tested) for failing dlsym on win32
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7051 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19 22:28:11 +00:00
brain
4874c63f73
Fix std::sort stuff for w00t
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7050 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19 18:32:23 +00:00
brain
206e3b49c7
SPACE INDENTING ACTION RANGERS -- ATTACK!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7048 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19 17:36:26 +00:00
brain
badadc427a
Visual studio's ability to translate tabs to four spaces as default frustrates and peplexes tabnazi cat.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19 17:22:43 +00:00
w00t
c778d1258a
Helps if I add the w32 specific code, too. :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7044 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19 16:01:06 +00:00
w00t
9cf56d917d
Windows support. Tested and working to compile on freebsd and linux. Next step is to make sure it actually works in windows too. ;p. Add Burlex to contributors.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19 15:56:42 +00:00
special
3bbb366953
Fixed a fairly low-risk crash in m_spanningtree
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7042 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-18 20:54:49 +00:00
special
3c27d02870
m_censor can now block lines as well, by specifying an empty replace string (QA, test please, my dev server seems to be broken :P)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7041 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-18 03:39:18 +00:00
brain
37d40095cf
Fix broken return statements preventing blockchat and blocked files to be used individually.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7040 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-17 17:29:29 +00:00
brain
91eebe370c
Change the way i/o lines are formatted in debug log to make them more intuitive. Now includes a C or S to say if its client or server, plus the fd:
...
Thu May 17 17:56:16 2007: C[15] -> :Brain MODE #test
Thu May 17 17:56:17 2007: C[15] -> :Brain WHO #test
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7039 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-17 16:54:33 +00:00
brain
98b4acdb3f
Add a progress meter for loading of core commands, fix broken implementation for <disabled commands> with a module command, as discovered by Casey in bug #293
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7038 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16 21:41:48 +00:00
brain
c73a9b10aa
This is funny, in m_md5 we have an ancient comment from w00t that i forgot to remove that says "maybe this md5 stuff would be better in a dedicated md5 module". LOL.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7037 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16 21:15:04 +00:00
brain
f7464bb042
We announce a ping timeout THREE different times and ways on the server that sent the ping. this is excessive.
...
Remove the announcement in DoPingChecks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7036 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16 21:09:04 +00:00
brain
6da93831b4
And fix another booboo
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7035 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16 21:03:45 +00:00
brain
b7dd7d244b
Add a notice on connection close stating server link uptime, and fix a bug in m_opermodes which meant that its modes werent being replicated across servers (it was sending a totally malformed MODE
...
command with the nick in twice, and has been doing this presumably since early 1.1's)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7034 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16 21:02:39 +00:00
w00t
1635c37dad
Tidy logic a little in here, and support <options:exemptchanops>
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7033 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16 10:47:45 +00:00
w00t
9bc8b26024
Opers are not exempt from other modes, don't exempt them from +N (we may add this back post 1.1.8 as a config setting)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7031 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16 10:42:46 +00:00
w00t
0723114557
While rolling our own IS_LOCAL check with irc::string comparison is clever (TM), it does seem a little redundant :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7030 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16 10:28:38 +00:00
w00t
5dbf63c2a3
Rather largeish change to class checking on connect to fix a few minor bits and bobs here and there
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7029 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-15 16:40:37 +00:00