3569 Commits

Author SHA1 Message Date
om
903dbea2b1 Change WriteChannelWithServ and it's _NoFormat to take a const char* servername rather than char* - although it doesn't seem to be used :<
Lose some more casts in m_spanningtree, unneeded because of above changes
Make xline_set_creation_time() take const char* rather than char* for it's first parameter, lose more casts in spanningtree because of this
Make do_whois take a const char* rather chan char* nick, lose yet more casts

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4095 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-01 14:40:53 +00:00
om
3cf1ae0470 Replace rather craq'y loop with a couple of std::string calls
Change GetServerDescription to take const char* rather than char*
Change userrec::server from char* to const char*, this is more 'correct' as it's not safe to modify it (pointer as returned by std::string::c_str())
Change WhoWasGroup::server, see above about userrec::server

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4094 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-01 11:42:09 +00:00
w00t
a3a9d3e0f0 forward port of r4092
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4093 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-01 10:28:42 +00:00
brain
98c703511c Tweak to IS_LOCAL macro to exclude invalid fd's that are > MAX_DESCRIPTORS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4091 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-30 18:20:27 +00:00
brain
e5c8ee880b *** Interesting fix ***
When a remote kill occurs, the user record for the remotely killed user may still hang around in the servers user list which is used when removing users during a netsplit.
I managed to duplicate the old 'crash on netsplit' bug by sending a remote kill to a server, and then squitting that server without receipt of the corresponding QUIT.
The fix now removes the user record explicitly upon remote kill (this also includes collisions)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4088 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-30 17:54:48 +00:00
special
9fc81392b3 Forward port of CullList and my bragging rights
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4087 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29 15:35:42 +00:00
om
63a3d49a01 And add the include to make all the modules compile...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4085 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29 15:01:28 +00:00
om
042de68ee5 This already adds the file and line number itself, call do_log() rather than log() then
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4084 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29 14:23:35 +00:00
om
e0e96f0124 You don't need to cast a char* to a char* to put it through a const char*...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4083 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29 09:33:44 +00:00
om
6fa94ee369 Remove hardcoded filename prefix to log message, with the new macro these are un-needed.
Remove un-needed cast, ffs guys, templates stop you needing to cast the stuff inside them... So why do you do it anyway? :<

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4082 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29 09:29:14 +00:00
om
7c0a77920d Change log() to a #define, the real symbol is now do_log(), the new macro auto-prefixes all log messages with the file and line number where log() was called - should be nice for debugging and telling wtf is coming from what.Currently uses a (probably very standard) g++ extension to make the macro work. Shouldn't be an issue.
You must make clean and rebuild all of insp.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4081 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29 08:30:25 +00:00
om
4a58726d8b Convert char* to const char* in InspSocket constructor prototype. Shouldn't break anything but ought to help lose some ugleh casts... >:)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4080 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29 07:00:25 +00:00
special
fea0e87ae8 Added missing return in Server::UnpublishFeature()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4079 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-28 15:20:25 +00:00
special
b28e63cdf3 Added SQLQuery::GetError() and removed a lot of space indenting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4078 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-28 15:17:05 +00:00
brain
b254d3d034 More stuff for allowing hostnames in <bind> and <link> again - note there is a FIXME here.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4076 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-28 10:59:47 +00:00
brain
4d394250d9 Allow binding to hosts again in <bind> and <link>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4074 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-28 10:53:02 +00:00
brain
a5d5953824 Add m_services_account
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4072 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-27 23:12:30 +00:00
brain
f4522a5749 Commenting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4069 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-27 20:58:49 +00:00
brain
8a8d0540aa We can re-enable special's security fix now - note this is good for boxes with one or more static ip's and still doesnt resolve the issue for smelly dynamic-ip users (well boo hoo :p)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4066 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-27 17:57:01 +00:00
brain
c55f9831ab Added auto-binding, picks the first ip in the <bind> tags that isnt localhost or INADDR_ANY, and auto binds to that IP to allow us to put back the security tweak
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4064 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-27 17:45:59 +00:00
brain
1805486ae5 Temporarily disable special's security improvement until we have either/or bind= and mask=
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4063 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-27 17:09:41 +00:00
brain
2ce729c003 Extra safety for user lists to not keep bad pointers hanging about
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4059 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-25 00:16:24 +00:00
brain
afcdca0670 Dont allow /REMOVE of a uline, dont allow /REMOVE of a user who isnt on the channel (*slaps* Om)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4057 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-24 18:00:28 +00:00
brain
7b0fcbfc06 Forwardport of safety fixes for Write* functions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4056 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-24 14:43:36 +00:00
special
72e17538de Forward port of samode edits
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4054 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-23 14:46:10 +00:00
om
7f9e0c3204 Remove un-needed cast, I have a horrible feeling I'll get stabbed for this. Please let me know before you do...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4052 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-23 14:24:34 +00:00
w00t
bf58f3140e m_services_account - now with 100 percent more elite.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4050 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-23 08:40:31 +00:00
special
ae9ea7855c I'm famous :>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4046 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-22 13:38:20 +00:00
special
2054f42afc Forward port of server link DDoS/oper flood fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4045 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-22 13:32:52 +00:00
special
c1958b1235 Fix for ./inspircd restart not working half the time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4042 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-22 10:26:33 +00:00
brain
fbc5d6b616 Added Server::PublishFeature(),
Server::UnpublishFeature(),
Server::FindFeature().
See comments in modules.h for usage


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4041 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-21 12:31:54 +00:00
brain
b0d03755f2 Class Request and class Event now take a void* in their constructor to save on a cast.
Please note that the data type *returned* by GetData() in both cases is still char*, as
C++ will not let you return a void*. This to be addressed by someone else with templates
when they have the time.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4038 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-20 11:26:57 +00:00
brain
00d4806d30 Don't allow non-ulines to kick ulines from channels - return numeric 482 if this is attempted (you are not a chanop) with different text
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4036 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-20 09:10:55 +00:00
w00t
3c43bf1c71 Forward-port CBAN expiry fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4035 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-19 02:54:05 +00:00
brain
e529eff4ed On remote kill, send KILL notice. mIRC doesnt seem happy with just the STANDARD message, it wants specially crafted quit notices too, but i say fuck mIRC.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4027 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-17 13:50:54 +00:00
brain
2325481ce7 Bring forward fix for w00t.
Note - umode +r may not be removed from a user when you svsnick them. Svsnick is not designed for this
type of "abuse" anyway and usually svsnick will only be used on someone who has no +r.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4025 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-17 13:27:13 +00:00
w00t
558ceaf16b Finished m_check. I am the best. It only took me 3 months :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4023 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-17 11:24:50 +00:00
brain
38c970bc53 Now only logs commands from local opers, that are oper commands they have permission to execute
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4015 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-16 12:12:46 +00:00
om
1a586eb091 Fix for m_ssl_openssl dying if the DH params file doesn't exist, compiles but untested cause I'm sleepy :(
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4014 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-16 00:57:14 +00:00
brain
594036b9bd Tweaks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4013 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-15 18:21:29 +00:00
brain
92c8a84fa4 Change to stdint
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4012 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-15 17:56:15 +00:00
brain
d94a547367 Helper script for rpath of mysql
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4008 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-15 13:33:18 +00:00
brain
ad145d8789 Now uses mysql_config and mysql_rpath.pl
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4007 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-15 13:32:50 +00:00
brain
980a2edce8 Nicer SQLQuery::Sanitise
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4006 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-15 13:04:07 +00:00
brain
4f372c3818 Look at this further later - 64 bit fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4004 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-15 08:41:20 +00:00
om
e444a218a2 Remove reference to secret ChatSpike CC # detection features
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4000 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-13 14:16:56 +00:00
brain
cdd61fbe54 If the <ALLOW> or <DENY> tag specifies an ip, and this user resolves,
then their ip will be taken as 'priority' anyway, so for example,
<connect allow="127.0.0.1"> will match joe!bloggs@localhost


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3997 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-12 15:57:51 +00:00
brain
8e1381822d Test commit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3996 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-08 22:02:02 +00:00
brain
70184c9ba3 Fix for mode string getting cut, breaks on some +L
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3995 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-08 22:00:25 +00:00
brain
5137a26a6f Fix for segfault if a user quits before their ident is complete, due to session limit reached
Do this by checking their pointer in the fd_ref_table against the pointer we got when we started
the lookup, so we can know if its been invalidated or not (just in case the OnClose occurs
before we NULL the user)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3992 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-07 15:47:42 +00:00