Commit Graph

  • 4a74b5bcfc Nitori Engineering master Izuru Yakumo 2025-04-17 20:33:16 -03:00
  • 2be3612092 Allow moderators to pass moderation to other users Mike Belopuhov 2017-08-30 02:13:24 +02:00
  • 614260fef6 Fixup debug printf Mike Belopuhov 2017-08-30 02:12:02 +02:00
  • 124a071881 Use the same pattern when creating Status and Error messages Mike Belopuhov 2017-08-30 02:11:44 +02:00
  • d8c39673f9 Fix off-by-one in icb_sendfmt Mike Belopuhov 2017-08-29 21:28:34 +02:00
  • 9336c3bb36 typo Mike Belopuhov 2017-08-28 16:49:01 +02:00
  • 6755e15ce8 Avoid comma operator Mike Belopuhov 2017-08-25 00:16:42 +02:00
  • ab3bb32b6d Convert while into a for loop Mike Belopuhov 2017-08-25 00:09:11 +02:00
  • e26e89966f Spacing Mike Belopuhov 2017-08-24 23:47:11 +02:00
  • 094a76c402 Another lurking setusercontext Mike Belopuhov 2017-08-24 23:46:25 +02:00
  • 4c0746156e setusercontext(3) conflicts with rc.d framework Mike Belopuhov 2017-08-24 19:45:05 +02:00
  • c6e00b99fc Split long open and private messages Mike Belopuhov 2017-08-24 16:41:37 +02:00
  • c3f5bda7d7 Merge pull request #5 from sthen/ismod_inline Mike Belopuhov 2017-04-11 12:42:35 +02:00
  • 1c7657c76e don't inline icb_ismod Stuart Henderson 2017-04-11 11:23:09 +01:00
  • 36f8e7c53b Merge pull request #4 from timkuijsten/manpage Mike Belopuhov 2016-09-21 22:54:47 +02:00
  • 5ea93bcb1d modtab is not reread on SIGHUP Tim Kuijsten 2016-09-21 21:48:05 +02:00
  • 6f076e75ae Merge pull request #3 from timkuijsten/pledge Mike Belopuhov 2016-09-21 22:45:32 +02:00
  • 411aa630ac pledge icbd and it's logger process Tim Kuijsten 2016-09-21 19:32:01 +02:00
  • 67f3e6099f restrict when in foreground mode as well Tim Kuijsten 2016-09-21 19:51:22 +02:00
  • e47285c3e7 Minor documentation fixes Mike Belopuhov 2016-02-23 22:49:58 +01:00
  • ec3eb38640 Bitch if trying to beep yourself Mike Belopuhov 2015-10-08 12:50:10 +02:00
  • 8bcfd5086a 'w' has been available for quite some time Mike Belopuhov 2015-10-08 12:46:16 +02:00
  • b8da4b3f04 Callbacks are long gone Mike Belopuhov 2015-10-08 12:44:37 +02:00
  • 61fdba7f29 Allow to beep chaps lurking in different groups Mike Belopuhov 2015-09-03 19:54:33 +02:00
  • 3347cd91c6 Make packet dump in debug mode more readable Mike Belopuhov 2015-06-14 01:25:37 +02:00
  • a56efea756 Private messages got limited to 160 bytes by accident Mike Belopuhov 2015-06-14 01:22:08 +02:00
  • 863edf17b7 Zero out the input buffer after icb_input and on drops Mike Belopuhov 2015-04-25 14:38:00 +02:00
  • 940d2b5a11 Don't attempt to drain the output buffer on drop Mike Belopuhov 2015-04-25 14:37:20 +02:00
  • e22d747f2b Improve groups list declaration Mike Belopuhov 2015-04-24 16:41:02 +02:00
  • 8b1683ee0a Zero out buffers before passing them to the tokenizer Mike Belopuhov 2015-04-22 19:38:18 +02:00
  • 65b48eef8e Improve [v]snprintf return value handling Mike Belopuhov 2015-04-22 19:29:05 +02:00
  • 7ff6405014 Better error messages for invalid groups Mike Belopuhov 2015-04-22 19:28:59 +02:00
  • 176b6efc59 Use new tokenizer to parse ICB commands Mike Belopuhov 2015-04-22 19:28:54 +02:00
  • 677a45b096 Remove group passwords and introduce new tokenizer Mike Belopuhov 2015-04-22 19:28:48 +02:00
  • 5dfeb4cfe6 move invariant out of the loop Mike Belopuhov 2015-04-22 19:28:42 +02:00
  • cba908b565 defgrp is const Mike Belopuhov 2015-04-22 19:28:27 +02:00
  • f73b386eea oops, fixup paste errors so that it compiles now Mike Belopuhov 2015-01-18 23:43:41 +01:00
  • 8d30e02557 icb_vis improvements Mike Belopuhov 2015-01-18 23:38:34 +01:00
  • d27dc1edd6 fixup signal and MAXPATHLEN include fallout Mike Belopuhov 2015-01-18 22:59:35 +01:00
  • 4c2a775e0d Do comparison before decrementing one of the operands. Move invariant out of the conditional block. Mike Belopuhov 2015-01-18 17:58:53 +01:00
  • cb7c49446c use ICB_MAXGRPLEN for the lenght of the group name Mike Belopuhov 2015-01-18 17:58:04 +01:00
  • 0519a8785b param.h and MAXHOSTNAMELEN cleanup Mike Belopuhov 2015-01-18 17:05:42 +01:00
  • 8f5ba64c71 fix two off-by-ones in icb_vis Mike Belopuhov 2014-11-11 13:40:33 +01:00
  • 1c6061c4af Don't waste time with DNS response if the session is going away. Downgrade DNS failures to LOG_DEBUG while here. Mike Belopuhov 2014-10-28 02:48:30 +01:00
  • 96a2e311af Reset is->group pointer in icb_remove so that we won't try to LIST_REMOVE multiple times (happens when free is delayed by the DNS resolution). Mike Belopuhov 2014-10-28 02:44:46 +01:00
  • e68221bca4 Check that the reverse resolved hostname resolves back to the connecting IP. Florian Obser 2014-06-23 15:02:33 +02:00
  • 120eedde50 prevent icbd_drop from freeing an icb session while dns is in progress Mike Belopuhov 2014-06-17 13:46:35 +02:00
  • 94404148eb check that reverse dns entry can be resolved Mike Belopuhov 2014-06-17 13:33:22 +02:00
  • d45051e8e7 make sure to abort bufferevent processing after icbd_drop was called Mike Belopuhov 2014-06-17 13:30:10 +02:00
  • 383d37b46d don't allow to boot yourself Mike Belopuhov 2014-06-17 12:40:49 +02:00
  • dab4135734 Use libevent asr helpers; from eric@ "please commit them now" mikeb@ Florian Obser 2014-06-17 12:50:41 +02:00
  • ee0e95fea0 new and public asr api; from eric@ OK mikeb Florian Obser 2014-03-31 16:14:10 +02:00
  • cdd2ff5fd2 Opportunisticly chdir to "core" (should be writeable by _icbd) after chroot to get working core dumps. Florian Obser 2014-03-14 22:37:05 +01:00
  • ad8b08d940 Chdir to /core after start Mike Belopuhov 2014-03-14 22:22:54 +01:00
  • 28c4fd37b1 Florian has pointed out that logger code suffers from the same problem as the main code. So first of all don't forget to subtract the amount of what's already read from the total length; secondly correct the condition to check partial read. Mike Belopuhov 2014-03-14 21:30:45 +01:00
  • de862308b5 Don't forget to subtract the amount of what's already read from the total length. Mike Belopuhov 2014-03-14 20:57:31 +01:00
  • 1bcb666958 Change the "Bummer" message to the more informative one Mike Belopuhov 2014-03-13 12:16:21 +01:00
  • fe81e9ad68 Sprinkle some __func__ into the syslog messages Mike Belopuhov 2014-03-10 13:15:14 +01:00
  • 7882a6f262 Get rid of the icbd callbacks interface Mike Belopuhov 2014-03-10 13:13:22 +01:00
  • e80f9fcc8a Convert dns_* functions to use icbd_log instead of syslog Mike Belopuhov 2014-03-10 13:11:56 +01:00
  • b6c9dd34d7 Don't cleanup trailing spaces from open and personal messages. Mike Belopuhov 2014-03-10 11:22:15 +01:00
  • c102bbf4a0 Make pidgin-icb /who and /msg work for real. Florian Obser 2014-03-09 23:42:06 +01:00
  • c4a43f1f8f make /who and /msg work in pidgin-icb Florian Obser 2014-03-09 18:15:17 +01:00
  • dcbd425530 Remove the session tree Mike Belopuhov 2014-03-09 16:10:52 +01:00
  • e87ab6d0e4 Convert DNS code to use ASR Mike Belopuhov 2014-03-09 16:09:45 +01:00
  • 718d0c9314 Remove jokes that are not fun anymore Mike Belopuhov 2014-03-09 15:04:11 +01:00
  • 709589d8fd A couple of fixups for icbd_modupdate Mike Belopuhov 2014-03-09 14:58:22 +01:00
  • 82d3c1fc7b stat(2) the modtab every time pass is requested Mike Belopuhov 2014-03-07 18:37:37 +01:00
  • 9c04f2a610 Make dns_done read loop work the same way dns_dispatch does Mike Belopuhov 2014-03-07 17:40:24 +01:00
  • 2cdab10177 Reset modtabcnt each time we (re)load modtab Mike Belopuhov 2014-03-07 17:32:09 +01:00
  • 145faa6040 Client can exit before DNS has a chance to update the information Mike Belopuhov 2014-03-07 17:25:18 +01:00
  • bacf9da559 line break Mike Belopuhov 2014-03-07 17:24:57 +01:00
  • d06af04d84 Don't log default group ("1") messages Mike Belopuhov 2014-03-07 17:04:20 +01:00
  • a76f86650f Improve the read loop in dns_dispatch before we switch to bufferevents Mike Belopuhov 2014-03-07 16:45:28 +01:00
  • 72898238c8 Change DNS resolver to ignore hostnames longer than 39 symbols and prefer IP/IPv6 addresses instead; substitute "localhost" with "unknown". Mike Belopuhov 2014-03-07 16:42:03 +01:00
  • 88719535c4 Better Mike Belopuhov 2014-03-07 16:23:09 +01:00
  • a2fadb4bf6 Get rid of ICB_MSGSIZE+1, fix various off-by-ones and do some truncation where necessary. Mike Belopuhov 2014-03-07 16:17:23 +01:00
  • 270fd23c1f Move modtab into the chroot and make it reloadable by SIGHUB input mikeb, manpage bits benno Florian Obser 2014-03-07 16:20:42 +01:00
  • a6b8c8ddaa typo Florian Obser 2014-03-07 15:41:35 +01:00
  • 058b664099 Make sure the we don't overflow the logfiles table Mike Belopuhov 2014-03-07 15:17:03 +01:00
  • e13307d836 Move icbd_ioerr before the dispatch Mike Belopuhov 2014-03-07 15:16:04 +01:00
  • be3ad87cfc Rewrite logger_dispatch to use bufferevents to simplify error processing Mike Belopuhov 2014-03-07 15:14:54 +01:00
  • 460786f474 Add command line switch '-n' to disable DNS Mike Belopuhov 2014-03-06 16:29:27 +01:00
  • f3c60e6c62 After some deliberation we have decided that if modtab is enabled then it should be possible to steal the moderation. Mike Belopuhov 2014-03-06 16:27:45 +01:00
  • 3fdebb84a9 log "Today is...", input mikeb Florian Obser 2014-03-06 14:55:53 +01:00
  • 709c3bcf05 Merge pull request #1 from bentley/master mbelop 2014-03-06 14:02:42 +01:00
  • 6e89d69069 accept throttling on EM/ENFILE, add checks for other errnos Sebastian Benoit 2014-03-06 00:12:47 +01:00
  • 21477e97bc Use more semantic mdoc macros. Anthony J. Bentley 2014-03-06 00:57:08 -07:00
  • 9a2a7036c7 Stuff logger_setts into the logger_tick directly Mike Belopuhov 2014-03-06 00:35:37 +01:00
  • c1888a5fa8 rotate logs Florian Obser 2014-03-06 00:04:58 +01:00
  • 23ca6f1881 log group status messages Florian Obser 2014-03-05 23:19:53 +01:00
  • 87dc6acc86 Remove an strlcpy leftover Mike Belopuhov 2014-03-05 22:59:27 +01:00
  • e54f151f05 chdir(/) immediately after chroot Stuart Henderson 2014-03-05 21:48:17 +00:00
  • 3dba97de1d Add a logging switch toggle and a prefix for a nicer chroot Mike Belopuhov 2014-03-05 22:41:56 +01:00
  • b28dd0e9f3 Ignore flags for /w, ircII uses -s by default with "SHOW_CHANNEL_NAMES" Stuart Henderson 2014-03-05 21:06:17 +00:00
  • 1dd35547d8 Chroot the logger process into the icbd user home directory Mike Belopuhov 2014-03-05 18:38:50 +01:00
  • 4e66b3ae9b Working logging Mike Belopuhov 2014-03-05 18:28:43 +01:00
  • a5893e9ac7 time accounting for log lines Florian Obser 2014-03-05 17:30:11 +01:00
  • 45bd56ab0c logger will do its own time accounting; from the discussion with florian Mike Belopuhov 2014-03-05 17:02:49 +01:00
  • 55923b7428 Add some basic logger framework Mike Belopuhov 2014-03-05 16:37:31 +01:00