Valery Yatsko
dbd98a0a38
packet.c fixed
2008-04-02 21:23:29 +04:00
Valery Yatsko
32db3450e8
Stuff connected with ctrlFd disabled
2008-04-02 21:16:13 +04:00
Valery Yatsko
360f052895
servlink fd commented out in close_connection() - we are moving on ssld
2008-04-02 21:12:08 +04:00
Valery Yatsko
6227ed01af
flood_recalc moved on ratbox3 event engine
2008-04-02 21:10:29 +04:00
Valery Yatsko
887b2f383e
linebuf -> rb_linebuf
2008-04-02 21:04:44 +04:00
Valery Yatsko
dd9b6ee83a
Oups, change for last commit
2008-04-02 20:55:38 +04:00
Valery Yatsko
0632be9b47
find_dline fixed
2008-04-02 20:54:27 +04:00
Valery Yatsko
2bd806b01c
Last argument fix
2008-04-02 20:51:17 +04:00
Valery Yatsko
c1441db7b7
listener.c fixes - part 1
2008-04-02 20:49:46 +04:00
Valery Yatsko
9674dc79be
add_connection fixed to accept F instead of fd
2008-04-02 20:45:37 +04:00
Valery Yatsko
734bfb87bc
Missed declarations
2008-04-02 20:40:38 +04:00
Valery Yatsko
2cbef5bc89
Porting accept callback functions
2008-04-02 20:39:36 +04:00
Valery Yatsko
fb968f050c
Workarond with listener.c stuff on moving from listener->fd usage on listener->F.
2008-04-02 20:06:11 +04:00
Valery Yatsko
3ea5fee7ed
irc_sockaddr_storage -> rb_sockaddr_storage, changing fd in Listener struct to F 'cause libratbox3 need it.
2008-04-02 19:57:37 +04:00
Valery Yatsko
c945815bf6
class.c fixed
2008-04-02 19:49:42 +04:00
Valery Yatsko
21c9d815d7
Reverting some changed related not to moving on libratbox3 but using ratbox3 source!
2008-04-02 19:37:50 +04:00
Valery Yatsko
ad9e4e4095
get_printable_kline(..) fix
2008-04-02 16:55:01 +04:00
Valery Yatsko
58dfaed919
fixing reject.c compilation + some changes I forgot in previous changeset
2008-04-02 16:53:21 +04:00
Valery Yatsko
9d948d2b6d
includes fix
2008-04-02 16:37:42 +04:00
Valery Yatsko
42d2f3061c
READBUF_SIZE
2008-04-02 16:35:48 +04:00
Valery Yatsko
95781b4d5f
Trying to fix packet.c
2008-04-02 16:31:17 +04:00
Valery Yatsko
8901cbdc74
add_reject fix - please check!!!
2008-04-02 16:12:49 +04:00
Valery Yatsko
1814e48902
fixing ServerStats references
2008-04-02 16:11:27 +04:00
Valery Yatsko
8750c6e6b7
tstats stuff gone to m_stats.c
2008-04-02 16:04:43 +04:00
Valery Yatsko
0328101a9b
s_stats.c::tstats fixed
2008-04-02 16:01:49 +04:00
Valery Yatsko
1ec2ad721b
ircst legacy declaration gone
2008-04-02 16:00:08 +04:00
Valery Yatsko
4ecbad0036
ircvsnprintf -> rb_vsnprintf
2008-04-02 15:58:00 +04:00
Valery Yatsko
111b38edc1
inotice fixed
2008-04-02 15:56:34 +04:00
Valery Yatsko
bdd19b720a
add_listener w/o ssl
2008-04-02 15:53:46 +04:00
Valery Yatsko
4dd4c5fcea
Missed ')'
2008-04-02 15:46:38 +04:00
Valery Yatsko
788813d6f3
client.c fixed, remember to check it with servlink
2008-04-02 15:45:41 +04:00
Valery Yatsko
404e46ce52
class.c fixed possibly
2008-04-02 15:33:29 +04:00
Valery Yatsko
9a63f5aa04
client.c fixed
2008-04-02 15:25:49 +04:00
Valery Yatsko
206b1ee61b
fixing dline
2008-04-02 15:20:15 +04:00
Valery Yatsko
6a73262e4d
'ServerStats->' -> 'ServerStats.'
2008-04-02 15:07:00 +04:00
Valery Yatsko
90b693f9f6
More charybdis -> ratbox3
2008-04-02 15:02:45 +04:00
Valery Yatsko
3e32e4d686
Fixing bugs
2008-04-02 14:43:53 +04:00
Valery Yatsko
92bdd4adfe
reject functions from ratbox3
2008-04-02 14:41:37 +04:00
Valery Yatsko
dfb5a598a0
Missed include
2008-04-02 14:37:40 +04:00
Valery Yatsko
0e992f7e53
s_stats workaround
2008-04-02 14:35:57 +04:00
Valery Yatsko
ed78643f52
sslproc.h include
2008-04-02 14:30:44 +04:00
Valery Yatsko
c72690d81d
ssl_ok in ircd.{h,c}
2008-04-02 14:29:18 +04:00
Valery Yatsko
d94b1e4014
hash_cli_fd(x)
2008-04-02 14:22:43 +04:00
Valery Yatsko
620a4bf34a
clientbyFdTable
2008-04-02 14:22:02 +04:00
Valery Yatsko
01ebafc985
Some hash stuff
2008-04-02 14:20:27 +04:00
Valery Yatsko
58e8319c1c
Reverting to 398.. trying again with native charybdis hash
2008-04-02 14:16:31 +04:00
Valery Yatsko
aa97babfaf
UMODE_DEBUG -> SNO_DEBUG
2008-04-02 14:01:32 +04:00
Valery Yatsko
162828b85d
hash.{h,c} from ratbox3, let's work around them! xD
2008-04-02 13:58:52 +04:00
Valery Yatsko
58f3e38756
extern declaration in ircd.h instead of ircd.c
2008-04-02 13:53:41 +04:00
Valery Yatsko
7ff5352595
Reverting last commit
2008-04-02 13:52:05 +04:00
Valery Yatsko
8125fe379f
fixing maxconnections -> rb_get_maxconnections()
2008-04-02 13:48:31 +04:00
Valery Yatsko
c3a90b617f
Much more changes to remove compilation warnings
2008-04-02 13:43:11 +04:00
Valery Yatsko
79edef0918
Trying again - this will need ssld integration from me
2008-04-02 13:32:14 +04:00
Valery Yatsko
55eeaea101
Reverting last commit to try again
2008-04-02 13:11:59 +04:00
Valery Yatsko
ae9fc63bfd
Trying to migrate on ratbox3's listener.
2008-04-02 06:25:08 +04:00
William Pitcock
6240376114
fix ircd.c compilation
2008-04-01 20:56:54 -05:00
William Pitcock
cbb49fab6a
Automated merge with http://angelforce.ru:8000
2008-04-01 20:55:21 -05:00
Valery Yatsko
15f1b609dc
Fixed a ratbox lib call as it is in ircd-ratbox-3
2008-04-02 05:47:12 +04:00
Valery Yatsko
9e29fe51e5
event* -> rb_event*
2008-04-02 05:43:35 +04:00
William Pitcock
4f14b4b7bc
Automated merge with http://angelforce.ru:8000
2008-04-01 20:38:23 -05:00
William Pitcock
738971829f
make s_user.c build.
2008-04-01 20:36:50 -05:00
William Pitcock
411559c8be
make s_stats.c compile
2008-04-01 20:34:58 -05:00
William Pitcock
7c944f6416
make s_newconf.c compile
2008-04-01 20:34:02 -05:00
William Pitcock
e49c49f91a
fix s_log.
2008-04-01 20:31:26 -05:00
Valery Yatsko
784fdac0b2
client.c fixes + away stuff from ratbox3, part 2
2008-04-02 05:24:54 +04:00
William Pitcock
13640b08e4
fix restart.c
2008-04-01 20:11:11 -05:00
William Pitcock
a8bb98dda2
fix reslib
2008-04-01 20:07:43 -05:00
William Pitcock
40da778118
fix newconf.c
2008-04-01 20:04:03 -05:00
William Pitcock
af75e59dc5
fix monitor.c
2008-04-01 20:03:40 -05:00
William Pitcock
3c8a7c391c
warning clean
2008-04-01 20:03:13 -05:00
William Pitcock
8779e02639
fix ircd_state.c
2008-04-01 20:01:48 -05:00
William Pitcock
075423b056
fix irc_dictionary, and some ircd warnings
2008-04-01 20:01:25 -05:00
William Pitcock
dd9be678f1
channel.c done!!!!
2008-04-01 19:56:51 -05:00
Valery Yatsko
6e9b4415cc
ok, trying to work on blockheap's stuff
2008-04-02 04:28:05 +04:00
Valery Yatsko
a9b319f1a7
BlockHeap -> rb_bh
2008-04-02 04:21:17 +04:00
Valery Yatsko
a83914b3fc
Prevent cork usage as charybdis doesn't have its support
2008-04-02 04:19:12 +04:00
Valery Yatsko
419f2d0c12
Missed include.
2008-04-02 04:16:50 +04:00
Valery Yatsko
acc2595cc3
fixing cache.c compilation - code stolen from ratbox3, with irc dictionary addition
2008-04-02 04:15:58 +04:00
Valery Yatsko
9f6bbe3cf9
CurrentTime -> rb_currenttime();
2008-04-02 03:53:20 +04:00
Valery Yatsko
62d289465f
DubString -> rb_strdup
2008-04-02 03:26:34 +04:00
Valery Yatsko
8e43b0b414
MyMalloc -> rb_malloc
2008-04-02 03:07:29 +04:00
Valery Yatsko
ece36b7b5d
away stuff from ratbox3
2008-04-02 03:03:15 +04:00
Valery Yatsko
f0a889b602
monitor.{c,h} stuff for libratbox3.
2008-04-02 02:55:34 +04:00
Valery Yatsko
90a3c35b29
Argh, wrong replace caused by MS VS 2005 interface.
2008-04-02 02:47:17 +04:00
Valery Yatsko
a55e57248b
MyFree -> rb_free
2008-04-02 02:45:16 +04:00
Valery Yatsko
cc200171d7
libcharybdis includes gone.
2008-04-02 02:39:19 +04:00
Valery Yatsko
2393f503a6
Removing libcharybdis references.
2008-04-02 02:18:44 +04:00
Jilles Tjoelker
527ec9116a
Some changes for libratbox.
2008-04-02 00:10:51 +02:00
Jilles Tjoelker
780087dc8e
Make send.c compile, except for ziplinks.
2008-04-01 23:51:34 +02:00
William Pitcock
d665092128
rb_event_add ;)
2008-04-01 16:26:23 -05:00
William Pitcock
ccfe0e9712
Make m_set compile.
2008-04-01 16:25:22 -05:00
Jilles Tjoelker
7f4fa1956e
More changes for libratbox.
2008-04-01 23:11:11 +02:00
William Pitcock
f14bcab7bc
patricia stuff
2008-04-01 15:44:55 -05:00
William Pitcock
8e69bb4e90
macro replacement
2008-04-01 15:43:10 -05:00
William Pitcock
af81d5a0b0
dlink -> rb_dlink
2008-04-01 15:41:52 -05:00
William Pitcock
38e6acddad
ircs[n]printf -> rb_s[n]printf
2008-04-01 15:38:40 -05:00
William Pitcock
08d11e34cc
start making this compile
2008-04-01 15:18:48 -05:00
William Pitcock
db6b03137d
bork bork bork
2008-04-01 15:14:08 -05:00
William Pitcock
c7b3ebc5c6
kill patricia.c
2008-04-01 15:11:03 -05:00
William Pitcock
4c1a91ed4b
Initialize libratbox.
2008-04-01 15:10:43 -05:00
William Pitcock
44674c4bb1
link against libratbox...
2008-04-01 14:55:00 -05:00
Jilles Tjoelker
8e0633f56f
Move PRIVS command from extensions to modules (shows effective oper privs).
2008-03-31 00:39:14 +02:00
Jilles Tjoelker
bf7f01038e
Add ERR_DISABLED (517) from ircu.
2008-03-30 19:56:20 +02:00
Jilles Tjoelker
5a34b193e6
Unbreak /quote help stats as an oper (all where oper and user help are different).
...
Remove symlink optimization, so helpfiles equal for
opers and users are loaded into memory twice, which
is not an issue.
2008-03-29 23:38:22 +01:00
Jilles Tjoelker
9b4ce61d2a
Fix type mismatch with format string.
...
Could have broken on some 64-bit machines.
2008-03-29 21:56:15 +01:00
Jilles Tjoelker
58067bff67
Cleanups to 005 code, from ratbox (androsyn).
2008-03-18 23:28:03 +01:00
Jilles Tjoelker
f1297898f3
Hide cmode +r from 005 if there is no service{} block.
2008-03-11 23:56:23 +01:00
Jilles Tjoelker
825907755e
Clearer error messages for failed joins.
2008-03-11 19:48:58 +01:00
Jilles Tjoelker
26f754d989
Show some target change statistics in /stats t.
...
- the number of messages blocked by target change on
this server since it was started
- the number of IPs currently subject to a a lower
target limit on this server (these expire over time)
2008-03-02 17:03:56 +01:00
William Pitcock
fda6c724ea
Remove CHFL_DEOPPED entirely.
...
Since charybdis 2.3 will require TS6, emulating legacy semantics is
unnecessary.
2008-02-27 14:08:27 -06:00
Jilles Tjoelker
a71d09f43f
Default connect::flags topicburst to true.
...
Use ~topicburst if you must disable it.
2008-02-02 17:15:34 +01:00
Jilles Tjoelker
d8027cae3e
Update /stats z for removal of struct User from whowas.
...
This was done in hybrid 5 or earlier...
2008-01-22 22:07:11 +01:00
Jilles Tjoelker
2386ae0477
send_linebuf_remote(): Remove broken and useless ghost check that can never happen.
...
Reasoning why it never does anything:
- the to = to->from line makes sure that MyConnect(to)
- then IsPerson(to) && (to == from->from) implies that to == from
- so MyClient(to)
- which cannot happen because it also wants that !MyClient(from)
Originally, the to = to->from line was below, and it did a
fake direction check, killing a client if servers could be
confused about it. The kill cannot do any good with TS6.
The fake direction check is and was performed by the
callers of send_linebuf_remote().
2008-01-17 01:06:32 +01:00
Jilles Tjoelker
4f5ec033bc
Fix some split servers not appearing in oper /map.
...
Needed another scache_split() call, in qs_server().
2008-01-16 19:53:42 +01:00
Jilles Tjoelker
40aba72723
kline_exempt does not exempt from D:lines, so don't tell user it does.
2008-01-06 17:41:59 +01:00
Jilles Tjoelker
7506208c5c
Remove FLAGS2_NOLIMIT (IsExemptLimits/SetExemptLimits).
...
This only has an effect at connection time, and the
ConfItem flag suffices for that.
2008-01-06 00:16:57 +01:00
Jilles Tjoelker
d1264ac892
Add two missing colons for sendto_one_notice().
2008-01-06 00:12:51 +01:00
Jilles Tjoelker
d2b16c2012
flag_table -> oper_table (more descriptive name)
2008-01-05 22:51:09 +01:00
Jilles Tjoelker
d180319a9d
Show full flag name, not letter, when refusing to set umode +s +n or +a.
2008-01-05 01:37:03 +01:00
Jilles Tjoelker
c41a85dfb6
Send a rate-limited server notice if a blacklist gives a non-127.0.0.x reply.
2008-01-05 00:38:23 +01:00
Jilles Tjoelker
eb6e811fba
Update some copyright years.
2008-01-02 22:34:29 +01:00
Jilles Tjoelker
bc71fb3f36
Only accept 127.0.0.x as a dnsbl listing.
2008-01-02 22:32:09 +01:00
Jilles Tjoelker
3055cb798c
Update main copyright year.
2008-01-02 00:09:50 +01:00
Jilles Tjoelker
5be2a08be3
Include time the k/d line was set in the reason when reading ban confs.
...
This correspond to what happens when a kline or dline is set.
2008-01-02 00:06:08 +01:00
Jilles Tjoelker
e54995b150
Remove idle time checking (auto disconnecting users idle too long).
2008-01-01 23:04:34 +01:00
Jilles Tjoelker
bd03481bde
STATS I and TESTMASK: Show some more auth{} flags.
...
flood_exempt (|), dnsbl_exempt ($), gline_exempt (_)
All these are only shown to opers.
2008-01-01 21:54:27 +01:00
Jilles Tjoelker
1eea3afa43
Fix a crash when connecting to a server.
2008-01-01 18:47:10 +01:00
Jilles Tjoelker
331c47e00a
STATS I: Show spoofed auth{} blocks and ^<> flags to remote opers also.
2008-01-01 18:25:04 +01:00
Jilles Tjoelker
24350e6234
Fix a crash after a local client exits.
2008-01-01 18:15:56 +01:00
Jilles Tjoelker
4d23dfbcb5
Remove various obsolete ConfItem statuses (types) and flags.
2008-01-01 16:06:59 +01:00
Jilles Tjoelker
06e080f3e8
Remove long obsolete comment.
2007-12-28 23:23:15 +01:00
William Pitcock
de0572442e
Replace int fd; in local client object with an fde object.
2007-12-28 15:06:33 -06:00
Jilles Tjoelker
16d59a0d4a
Use connect_timeout for handshakes; add snote and log when they time out.
2007-12-28 16:38:39 +01:00
Jilles Tjoelker
e883cf07e7
Remove code for unregistered clients from check_pings_list()
...
because it is only called for lists of registered clients.
2007-12-28 16:17:39 +01:00
Jilles Tjoelker
d23bc305d6
Make remote numerics to channels work.
...
Note that +D clients do not get these. This is consistent
with how ircu treats remote numerics and with how we treat
server notices from other servers, but not with how locally
generated notices and numerics are sent also to +D clients.
2007-12-26 22:46:43 +01:00
Jilles Tjoelker
2a719c44c0
Consolidate duplicate channel mode flags tables to one.
2007-12-25 01:00:20 +01:00
Jilles Tjoelker
05beabd14f
Remove "<server> had been connected for <time>" snote.
...
For registered servers, it is entirely redundant with the
"<server> was connected for <time>. <traffic>" snote, and
only sent for some ways of closing; for handshakes, you
already know that it had not been connected for long.
2007-12-24 23:29:01 +01:00
Jilles Tjoelker
9f8d60cc83
Make the other notices to snomask +b network wide.
...
(with the exception of flooding on an &channel)
2007-12-24 22:43:47 +01:00
Jilles Tjoelker
c13a2d9ad3
Add mass_notice oper priv, enabled by default for compatibility.
...
Controls /wallops and masked notices/privmsgs.
2007-12-24 21:47:05 +01:00
Jilles Tjoelker
2d2c402d0b
Move various flags from flags2 to flags.
2007-12-24 20:58:55 +01:00
Jilles Tjoelker
6f068dbd15
Remove unused CONF_FLAGS_DO_IDENTD and FLAGS_NEEDID.
2007-12-24 20:32:41 +01:00
Jilles Tjoelker
5fcb6b5d88
Remove unused flag FLAGS_CHKACCESS.
2007-12-24 20:26:39 +01:00
Jilles Tjoelker
965dfbd38a
Branch merge.
2007-12-24 18:24:49 +01:00
Jilles Tjoelker
420b2c9a10
Remove dot_in_ip6_addr config option.
2007-12-24 18:24:23 +01:00
William Pitcock
c1e5bc4117
comm_locate_fd(), not comm_lookup_fd().
2007-12-22 16:30:06 -06:00
William Pitcock
5cd74a3b6c
linebuf_flush(): use fde_t's.
2007-12-22 16:28:05 -06:00
William Pitcock
5893220fdc
wtf mercurial, tbh.
2007-12-22 16:08:34 -06:00
William Pitcock
64513f3675
Automated merge with ssh://hg.atheme.org//hg/charybdis
2007-12-22 14:05:45 -06:00
William Pitcock
2cac65a378
Add some GNUTLS helper code.
2007-12-22 14:05:03 -06:00
Jilles Tjoelker
95d36ef54b
It is ok to send 402 to local clients for any hunt_server operation.
2007-12-22 00:20:54 +01:00