Bram Matthys
73810a4f82
Cleanups in badwords.c: removed duplicate code, now one big stripbadwords() function which
...
is called by stripbadwords_channel()/stripbadwords_message().
2003-01-24 02:49:41 +00:00
Bram Matthys
e8d8a27cbc
Added a much faster (>100x) badwords replace routine which will be used for easy replaces like
...
"blah", "*blah", "blah*" and "*blah*"... otherwise regexp is used. Disabled by default until
it's really finished and fully tested.
2003-01-24 02:18:33 +00:00
Bram Matthys
3a546fb04c
Cleanup of m_userhost / my previous patch screwed things up ;P
2003-01-23 21:05:44 +00:00
Bram Matthys
358a00e90c
Fixed some formatting issues.
2003-01-23 20:47:06 +00:00
Bram Matthys
e333890b0f
Fixed SSL session cache bug, symptoms were: stunnel can only connect the 1st time,
...
reconnecting etc fails with (in stunnel log) "SSL_connect: Peer suddenly disconnected".
This happends with OpenSSL 0.9.7.
2003-01-23 17:03:53 +00:00
Bram Matthys
78dc344785
Added much better checking for weird characters in hostnames.
...
We were doing "deny known bad characters" instead of "only allow known good characters", this was REALLY bad...
This patch limits hostnames to alphanumeric, '-', '_' and '.'.
2003-01-22 19:37:42 +00:00
Bram Matthys
a79e26deff
Fixed major (?) bug in resolver (affects ipv4 only), could cause long stalls / crashes.
...
for (i = 0; &HE(cp)->h_addr_list[i]; i++) was used in ipv4 mode, but should be
without the &... this caused some stalls (like 11 seconds) at my machine because the
loop was executing >1 million times (I don't understand why it didnt crash however).
2003-01-21 23:01:44 +00:00
Bram Matthys
d932cf0220
Fixed bug in channel mode +L #aaaaaaaaa<etcetc>.
2003-01-20 21:17:24 +00:00
Bram Matthys
e71f39ea62
Fixed bug in non-working channel mode +H. There was a #ifdef ENABLE_INVISOPER
...
block around +H checking, but this #ifdef is only at this place and is also
never defined... Removed #ifdef because that's now in module...
2003-01-20 20:48:59 +00:00
Bram Matthys
1e51112790
Fixed win32 compile error because of report_error patch (oops, lalala :P).
...
Added P_ECONNABORTED and P_ECONNRESET.
2003-01-20 19:33:18 +00:00
Bram Matthys
6a9579930a
Fixed crash when +x is in modes-on-oper, user has -x and then /oper's.
2003-01-20 15:21:38 +00:00
Bram Matthys
9c31edf6e7
Made netadmins able to see users in all chans by using /who #chan or /names #chan.
2003-01-20 03:44:13 +00:00
Bram Matthys
d7e7562626
I love ugly code!! I fixed an out of bound memory read a week ago in the
...
time function, however my fix was wrong / usually the out of bounds memory
reading went well so the function worked... now it didn't... patched ;P.
Some examples: 4s = 8, 1m = 61, 1h = 3601, 1h2m = 3722.
2003-01-20 01:38:59 +00:00
Bram Matthys
2a266829e3
Fixed SVSMODE bug in handling of non-qaohvbe modes. ( #0000631 )
...
*parabuf wasn't set to '\0' so previous modes were applied in some cases...
2003-01-20 00:46:27 +00:00
Bram Matthys
86021bdd9b
Fixed shun: ADMIN and PONG are allowed if shunned, also manually removing
...
a SHUN from a user affects connected clients immediatly. Moved ~45 lines of
code to a seperate function for this.
2003-01-20 00:30:51 +00:00
Bram Matthys
87b22510c0
Fixed some of the FreeBSD warnings, like 'Cannot accept connections' and
...
'getsockopt(IP_OPTIONS)' reported in bug #0000616 . There's still one around
somewhere, but it's a start. Also modified report_error so it reports both
the socket error AND the system error if they are different.
2003-01-19 23:46:16 +00:00
Bram Matthys
1c1f135f8d
useless change: &me.name -> me.name in my previous patch, doesn't change
...
anything but it was annoying my eye ;P.
2003-01-19 23:29:22 +00:00
Bram Matthys
1d0936d07a
Added RPL_ENDOFSTATS after tkl_stats output if called by /kline, /gline, etc
...
without parameters.
2003-01-19 22:58:07 +00:00
Bram Matthys
22f60e47c8
Fixed compile error in src/random.c at win32. Also added some nice #ifdef's
...
so we don't get unused var warnings in non-SSL mode...
2003-01-19 22:41:03 +00:00
Bram Matthys
d5faf64581
Added message if '/helpop' is used without parameters by helpops. (dont panic!)
2003-01-19 21:26:34 +00:00
stskeeps
e5dc32a0d0
- Compile fixes regarding throttling
...
- Fix when you use another make than make
2003-01-17 20:32:49 +00:00
stskeeps
5289be076a
- Preperations for beta14. Will be a recommended upgrade
2003-01-17 17:10:11 +00:00
luke
f83daf4607
stupidity
2003-01-17 15:23:51 +00:00
codemastr
eb1e4f000b
Resolver bug fix
2003-01-16 22:10:06 +00:00
stskeeps
381350618f
- One more fix to the above
2003-01-16 15:19:25 +00:00
stskeeps
1aabd39d27
- Fixed a bug where helpop would pass on a null pointer
2003-01-16 13:45:26 +00:00
stskeeps
ea2f1c6fc7
- Fixed a bug where helpop would pass on a null pointer if it was a remote
...
client (this needs more investigating, could someone find out how the fuck
it can get a remote helpop that's blank anyhow?).
2003-01-16 06:19:12 +00:00
mcskaf
0349a1d1d8
We were writing a null to the log file when we reached max size. Bug #0000613 reported by AngryWolf
2003-01-15 23:10:13 +00:00
stskeeps
7601cbcf12
- Adding throttling, read config.h for more info. For the uneducated,
...
throttling is to reconnect way too fast repeatedly. Thanks to [Real] for
the idea
2003-01-15 18:32:25 +00:00
codemastr
c02033f3ca
Fixed a bug when leaving off a parameter for a password config entry
2003-01-15 16:40:15 +00:00
codemastr
3095782cfd
Various fixes
2003-01-14 21:25:04 +00:00
codemastr
fed61efcdb
Misc. fixes
2003-01-11 19:33:42 +00:00
mcskaf
fe9dc6d3c4
Fixed bug 601 - ipport_seperate() used strtok() to separate ip:port but when
...
just :port was specified it skipped the leading : and assigned the port to ip
and null to the port causing the calling routine to seg fault.
2003-01-07 02:30:21 +00:00
codemastr
8523a7554b
Fixed a random bug and added link::password-connect encryption error
2003-01-05 16:51:15 +00:00
codemastr
d47e956c5b
Fixed a bug in the empty channel fix
2003-01-05 01:28:23 +00:00
codemastr
b455704e7f
Added a patch by Syzop to increase randomness of the random numbers
2003-01-05 01:26:28 +00:00
luke
909c5843cb
Fixed bug with whole bunch of users in an empty channel (codemastr found it)
2003-01-04 21:42:03 +00:00
codemastr
286115c256
Fixed some conf3 bugs
2003-01-03 17:44:02 +00:00
codemastr
91b9fa2281
Removed USE_LONGMODE
2003-01-03 17:05:58 +00:00
codemastr
a123023350
Added the ability to specify port ranges
2003-01-02 20:49:44 +00:00
codemastr
d7c59f9961
Fixed a few bugs
2003-01-02 19:32:58 +00:00
codemastr
efa61e7ec0
Fixed a bug in the binary searching routines
2002-12-29 17:34:51 +00:00
codemastr
2270e37dca
Added pretty_time_val
2002-12-20 22:09:38 +00:00
codemastr
31171c09b4
Fixed a bug where setting umode -o didn't set -h
2002-12-19 21:59:22 +00:00
codemastr
67b1118abb
Added set::snomask-on-oper
2002-12-19 21:49:37 +00:00
griever
24cd9ff5ef
TKL fix and shit
2002-12-19 20:40:40 +00:00
mcskaf
ab66342581
Fix bug 552
2002-12-17 19:56:36 +00:00
mcskaf
c3f23435d5
Detect include file error.
2002-12-17 19:53:41 +00:00
stskeeps
e1b22ca767
bah src/umodes.c
2002-12-16 13:36:50 +00:00
stskeeps
3c99989a07
fuck it all
2002-12-16 13:36:18 +00:00