Commit graph

  • 351c4a5107 remove debugging inetport() thingy Bram Matthys 2015-08-10 17:23:17 +02:00
  • 3d60e89e54 When log::maxsize is specified the ircd will now rename the log file to [nameoflogfile].old when it reaches the maximum size (any previous ircd.log.old will be overwritten). This is much more useful than just truncating the log file (= all contents are lost). Bram Matthys 2015-08-09 17:26:33 +02:00
  • 810feea66f Merge pull request #33 from dboyz/recvq,sendq Bram Matthys 2015-08-09 17:12:34 +02:00
  • fb157899dc Implemented #1613: When doing a remote /REHASH show the rehash result (such as warnings and errors encountered). Bram Matthys 2015-08-09 16:18:27 +02:00
  • 54f30886d2 Fix server linking (outgoing) not working after IPv4/IPv6 split a week ago. Bram Matthys 2015-08-09 16:12:38 +02:00
  • a18596c9b5 Nowadays OpenSSL is using the following official binary compatbility policy: for version A.B.Cd as long as A.B is the same for both runtime & compiled time then it's compatible. Bram Matthys 2015-08-09 15:24:20 +02:00
  • 20d8f876c8 Fix crash on startup if using the dnsbl block with multiple replies. Reported by Hero (#4392). Bram Matthys 2015-08-09 15:10:53 +02:00
  • f985f21c54 even better Bram Matthys 2015-07-29 18:48:17 +02:00
  • ebc61fe603 Reject bans with ASCII < 32. There's no reason to allow these.. Bram Matthys 2015-07-29 18:44:39 +02:00
  • 13089a6958 Show IPv6 nameservers in '/QUOTE DNS i'. This requires c-ares >=1.7.1. Since 1.7.1 is from March 2010 that should be okay ;) Bram Matthys 2015-07-29 17:53:43 +02:00
  • a843cec6bc like I said Bram Matthys 2015-07-29 17:41:14 +02:00
  • 9b97e28ccd Remove unused settings. Bram Matthys 2015-07-29 17:39:29 +02:00
  • 09895c67f1 set::stats-server is optional, however if it was missing then if an oper did '/STATS S' the ircd would crash. Bram Matthys 2015-07-29 16:03:45 +02:00
  • e627d3682c pass by ref instead of pass by value for chmode_str() Bram Matthys 2015-07-29 16:03:25 +02:00
  • 8df16d5a83 kill some warnings (mostly bogus) Bram Matthys 2015-07-29 15:55:31 +02:00
  • 2bd5345eec quick fix for flood counters being reset on /REHASH. will use moddata later so we can reload ok again. Bram Matthys 2015-07-29 13:13:09 +02:00
  • 0bcc8494b7 Fix some FIXME's. Remove unused set::dns::nameserver (actually it was a fallback if /etc/resolv.conf etc failed but.. well.. not anymore!) Bram Matthys 2015-07-29 13:09:26 +02:00
  • 8a3d1b22f1 Move too broad ban checking to ban_too_broad(usermask,hostmask) function. TODO: more config shit. Bram Matthys 2015-07-29 13:00:29 +02:00
  • b12ee99ab2 like I said. Bram Matthys 2015-07-29 12:42:06 +02:00
  • 14aca6bcde Remove unused alloca stuff. Fix windows warnings. Bram Matthys 2015-07-29 12:30:40 +02:00
  • 8c86721c55 Fix some Windows compile warnings Bram Matthys 2015-07-29 12:19:29 +02:00
  • 49bb80901e Add './unrealircd upgrade-conf' code for upgrading the listen block to the new syntax. Bram Matthys 2015-07-29 11:50:23 +02:00
  • ff0b4aba75 New style listen block: listen { ip *; port 6667; };. Why? Mainly because the old style looks strange for IPv6 (brackets and stuff). Bram Matthys 2015-07-29 11:37:51 +02:00
  • 6410f82162 don't care. Bram Matthys 2015-07-29 11:01:38 +02:00
  • 4a890e3915 Add IPv6 info to release notes. Bram Matthys 2015-07-29 11:00:20 +02:00
  • c19165c8a6 Remove remaining INET6 defines and questions, as it's now always the default. Bram Matthys 2015-07-29 10:42:40 +02:00
  • ae23d99e07 Get rid of #if INET6 stuff, as all supported OS's support IPv6 at compile time. Use set::options::disable-ipv6 to disable IPv6 at runtime. Cleanup unused IPv6 structs/vars/functions/.. Bram Matthys 2015-07-29 10:31:12 +02:00
  • 3b217f083a Make IPv6 work on Windows Bram Matthys 2015-07-29 09:50:36 +02:00
  • c8a5bfd2b4 like I said.. Bram Matthys 2015-07-28 22:26:24 +02:00
  • a29baf96f6 upgrade some ipv4-only stuff. Also set:🔗:bind-ip was broken in multiple ways. Bram Matthys 2015-07-28 22:24:17 +02:00
  • fa87577918 and some more. Bram Matthys 2015-07-28 22:14:58 +02:00
  • 49fb284096 finishing up.. Bram Matthys 2015-07-28 21:48:25 +02:00
  • ea7a080154 remove more unused functions Bram Matthys 2015-07-28 21:44:32 +02:00
  • 47ec1da3f5 Remove unused functions Bram Matthys 2015-07-28 21:42:40 +02:00
  • 6f34a8203d Another interim commit for ipv4/ipv6 socket split. Compiles now, and client connects. Still plenty to fix.. Bram Matthys 2015-07-28 17:56:40 +02:00
  • b072a80638 get rid of local->ip stuff in throttle Bram Matthys 2015-07-28 17:47:40 +02:00
  • 46ee510da6 ipv4/ipv6 split. interim commit (does not compile) Bram Matthys 2015-07-28 17:42:24 +02:00
  • 63724c312b Use acptr->ip Bram Matthys 2015-07-28 16:21:08 +02:00
  • 3577583eaf ipv4/ipv6 split - phase 1 (unstable!!) Bram Matthys 2015-07-28 16:20:00 +02:00
  • d15701bced Make ident code more ipv4/ipv6 neutral. This will break things until we do the socket split. Bram Matthys 2015-07-28 14:44:42 +02:00
  • 3ffa547d2e Remove more acptr->local->ip stuff, and fix some code from minutes ago. Bram Matthys 2015-07-28 14:19:18 +02:00
  • a6a5e93524 We already check for 'too many unknown connections from your IP' in add_connection(). Bram Matthys 2015-07-28 14:15:30 +02:00
  • 8e30acda41 More local->ip & INET6 stuff removed. Bram Matthys 2015-07-28 14:14:52 +02:00
  • 80147b2914 Make throttling code work on aClient * structs. Other code may change later (makes it easier). Bram Matthys 2015-07-28 14:05:41 +02:00
  • 7d98523c48 Remove forward/revdns mapping check as we already do this in res.c. Convert stuff from acptr->local->ip (struct) to acptr->ip (string) Bram Matthys 2015-07-28 14:01:01 +02:00
  • 925de764ff Make auto-join code use Find_tld(). Guess this means tld::options::ssl was not working for tld-specific auto join channels. Bram Matthys 2015-07-28 13:55:00 +02:00
  • a049ef22e4 remove unused code due to previous changes Bram Matthys 2015-07-28 13:52:17 +02:00
  • a444964730 Convert TLD code to use match_user(): MOTD OPERMOTD BOTMOTD RULES etc.. Bram Matthys 2015-07-28 13:50:47 +02:00
  • 709c7e890e Use match_user() for is banned checking. This also makes CIDR work in bans/exempt/invex. Remove ban_realhost, ban_virthost, ban_cloakhost and ban_ip stuff. Should be just as fast if you use match_user() now. Bram Matthys 2015-07-28 13:39:56 +02:00
  • 58b864edd5 Re-do CIDR and at the same time all the user matching stuff. Introducing match_user(mask, acptr, options): this should be used everywhere rather than the many DIY routines everywhere that create a nick!user@host and then run a match() on it. The match_user() function is not been fully tested yet, at this point I'm happy we can compile again. Bram Matthys 2015-07-28 13:26:03 +02:00
  • 26bdea371e Start of "try to use IP strings rather than IPv4/6 specific code". Just a start, would do more but my pizza is ready. Bram Matthys 2015-07-27 18:51:13 +02:00
  • 012413313c fix loopback checking Bram Matthys 2015-07-27 18:42:28 +02:00
  • 5bfa5c701e Never understood why it's called get_sockhost() if it actually sets it. Renamed to set_sockhost() Bram Matthys 2015-07-27 18:30:25 +02:00
  • 55af91a4ce ensure acptr->ip is set (probably useless change, but better safe than sorry). fix incorrect comment. Bram Matthys 2015-07-27 18:13:13 +02:00
  • a613a29b02 Ensure people don't run 'make' from the wrong directory. Reported by hyperi0n. Bram Matthys 2015-07-26 14:14:39 +02:00
  • 91c6b0025e Fix compile failure on BSD/OSX Travis McArthur 2015-07-25 19:52:13 -07:00
  • 8597e78038 Fix #0004382 - config_checkval in sendq,recvq Travis McArthur 2015-07-25 19:42:20 -07:00
  • 8417ddf0b9 Another case of atol -> config_checkval Daniel Tan 2015-07-26 09:00:40 +08:00
  • 33f1322def Whoops. Back out m_user cleanup from an hour ago. We call m_user() at a few places (ugly ugly). Will take a look at this again another time I guess.. Bram Matthys 2015-07-25 20:41:59 +02:00
  • 40354d0459 Hmmm. This doesn't work. Look at it again later, I like the warning, just want the option to ignore it. Bram Matthys 2015-07-25 20:38:52 +02:00
  • 85dceb0bae mark some stuff with __attribute__((warn_unused_result)) Bram Matthys 2015-07-25 20:29:04 +02:00
  • 2a53499610 Get rid of useless DLLFUNC prefixes (at places where they were not needed) Bram Matthys 2015-07-25 20:23:37 +02:00
  • fd375ee284 Use CMD_FUNC() everywhere Bram Matthys 2015-07-25 20:22:44 +02:00
  • 4ad0ef4c65 use pclose after popen and not fclose .. :) Bram Matthys 2015-07-25 19:41:15 +02:00
  • 80d3205a72 blah. enough small things now. Bram Matthys 2015-07-25 19:26:24 +02:00
  • 19faef887d This one is supposed to use config_checkval too. Thanks for pointing out Daniel Tan 2015-07-26 01:16:23 +08:00
  • 35aff98d10 really don't care about return value Bram Matthys 2015-07-25 19:13:34 +02:00
  • c480ee5b91 fix silly warning. was safe, parv[1] can never exceed BUFSIZE (512), duh. Bram Matthys 2015-07-25 19:12:29 +02:00
  • b1a1c51f4e wow.. that's a lot of lines to do something simple @ m_vhost :D Bram Matthys 2015-07-25 19:10:48 +02:00
  • 4573a61518 cleanup m_vhost Bram Matthys 2015-07-25 19:08:19 +02:00
  • 83a2caea3e cleanup m_user. Remove very old code to deal with remote USER messages from servers Bram Matthys 2015-07-25 19:02:42 +02:00
  • 652795f2c0 Fix a bug in spamfilter TKL syncing with non-TKLEXT servers (non-unrealircd's). Bram Matthys 2015-07-25 18:49:28 +02:00
  • e1160a0260 Check FLUSH_BUFFER. Bram Matthys 2015-07-25 18:36:47 +02:00
  • 9a336fa53b cleanup Bram Matthys 2015-07-25 18:36:23 +02:00
  • ec504a2e49 parc wasn't decreased in a mode cutoff routine. Bram Matthys 2015-07-25 18:29:31 +02:00
  • fd3057a462 goto deny; continue; hmmmmm Bram Matthys 2015-07-25 18:25:41 +02:00
  • 13390250ec more of the same Bram Matthys 2015-07-25 18:24:13 +02:00
  • 4f8be613b9 cleanup & re-indent m_invite & remove old checks/ifdef's Bram Matthys 2015-07-25 18:22:10 +02:00
  • 55af9ec0a9 don't +b if banlist is full @ chanmode +f textflood kickban Bram Matthys 2015-07-25 18:09:52 +02:00
  • f7ba695625 Crash reporter is now working on Windows as well. Bram Matthys 2015-07-25 12:31:03 +02:00
  • 644ddd43ca Windows: use crash handler for abort() calls as well (this needs to be improved, but in the meantime...) Bram Matthys 2015-07-25 10:53:12 +02:00
  • 443a8bb734 Fix Windows core dump. Stack trace was broken. Bram Matthys 2015-07-25 10:30:31 +02:00
  • fb0662f67c crash reporter: use HTTPS Bram Matthys 2015-07-24 22:10:26 +02:00
  • 2cb395216a First version of crash reporter. TODO: Windows, SSL (HTTPS), prettify code, .. Bram Matthys 2015-07-24 21:21:35 +02:00
  • 271d116120 Use config_checkval instead of atol Daniel Tan 2015-07-25 02:18:39 +08:00
  • 8148d43f6e [#4382] Fix recvq and sendq unable to specify data size prefix (m,k,G) Daniel Tan 2015-07-25 02:05:22 +08:00
  • 8bea346263 In fix_timers(), called for time jumps, also deal with aconf->hold (outgoing autoconnects). Change throttling flush to a more conservative approach. Bram Matthys 2015-07-24 11:57:09 +02:00
  • 5fce302336 1) Make firsttime ("online since") the real online since (fixes #2174), 2) Reset fakelag when user comes online. Bram Matthys 2015-07-23 22:19:28 +02:00
  • 7072902844 Update version to 3.4-beta2. Bram Matthys 2015-07-23 14:52:16 +02:00
  • c088dd61e5 update release notes for 3.4-beta2 Bram Matthys 2015-07-23 14:48:26 +02:00
  • 2164f9ee67 Windows version: fix timers not being called at the right time & incorrect time jumped .. seconds ahead warning. Bram Matthys 2015-07-23 14:22:17 +02:00
  • ac6fa87e2e Fix (likely) crash if using set::options::flat-map because it was missing an argument to the fmt string. Bram Matthys 2015-07-23 14:00:42 +02:00
  • ecf71f0d4f fix code <1hr back. duh. Bram Matthys 2015-07-23 13:49:14 +02:00
  • a83ef4eccf Fix oper::mask { one; two; three; }; not working (#4376). Bram Matthys 2015-07-23 13:25:09 +02:00
  • eedf7e1eb7 AFAICT all these cases are handled elsewhere (registration timeout, dns timeout, ident timeout) and this code is wrong anyway (and hopefully never triggered) Bram Matthys 2015-07-23 13:03:55 +02:00
  • 6be099d2b1 Actually wait for the ident response rather than just hope it to arrive in time (which it often won't). Bram Matthys 2015-07-23 12:58:33 +02:00
  • 5a63808741 Don't flood the auth daemon :D Bram Matthys 2015-07-23 12:41:58 +02:00
  • bdbca8a8dc Fix crash on certain kills. Interesting bug :D Bram Matthys 2015-07-23 10:37:45 +02:00
  • 6347b0ca95 Channel mode +O had the join check reversed (rejecting ircops, allowing regular users) Bram Matthys 2015-07-22 08:51:41 +02:00
  • 2ff4e7857f dumdeedum Bram Matthys 2015-07-22 08:31:28 +02:00