Florian Obser
c102bbf4a0
Make pidgin-icb /who and /msg work for real.
...
pidgin-icb seems to treat "." as the current group, so return the who
output for the group the icb session is connected to.
Turns out the previous commit doesn't fix anything - the tests were
wrong, so revert that.
2014-03-09 23:42:06 +01:00
Florian Obser
c4a43f1f8f
make /who and /msg work in pidgin-icb
2014-03-09 18:15:27 +01:00
Mike Belopuhov
dcbd425530
Remove the session tree
2014-03-09 16:10:52 +01:00
Mike Belopuhov
e87ab6d0e4
Convert DNS code to use ASR
2014-03-09 16:09:45 +01:00
Mike Belopuhov
718d0c9314
Remove jokes that are not fun anymore
2014-03-09 15:04:11 +01:00
Mike Belopuhov
709589d8fd
A couple of fixups for icbd_modupdate
2014-03-09 14:58:22 +01:00
Mike Belopuhov
82d3c1fc7b
stat(2) the modtab every time pass is requested
...
plus some minor style changes
2014-03-07 18:37:37 +01:00
Mike Belopuhov
9c04f2a610
Make dns_done read loop work the same way dns_dispatch does
2014-03-07 17:40:24 +01:00
Mike Belopuhov
2cdab10177
Reset modtabcnt each time we (re)load modtab
2014-03-07 17:32:09 +01:00
Mike Belopuhov
145faa6040
Client can exit before DNS has a chance to update the information
2014-03-07 17:25:18 +01:00
Mike Belopuhov
bacf9da559
line break
2014-03-07 17:24:57 +01:00
Mike Belopuhov
d06af04d84
Don't log default group ("1") messages
2014-03-07 17:08:56 +01:00
Mike Belopuhov
a76f86650f
Improve the read loop in dns_dispatch before we switch to bufferevents
2014-03-07 16:45:28 +01:00
Mike Belopuhov
72898238c8
Change DNS resolver to ignore hostnames longer than 39 symbols and
...
prefer IP/IPv6 addresses instead; substitute "localhost" with
"unknown".
2014-03-07 16:42:03 +01:00
Mike Belopuhov
88719535c4
Better
2014-03-07 16:23:09 +01:00
Mike Belopuhov
a2fadb4bf6
Get rid of ICB_MSGSIZE+1, fix various off-by-ones and do some truncation
...
where necessary.
2014-03-07 16:21:30 +01:00
Florian Obser
270fd23c1f
Move modtab into the chroot and make it reloadable by SIGHUB
...
input mikeb, manpage bits benno
2014-03-07 16:20:42 +01:00
Florian Obser
a6b8c8ddaa
typo
2014-03-07 15:42:20 +01:00
Mike Belopuhov
058b664099
Make sure the we don't overflow the logfiles table
2014-03-07 15:17:03 +01:00
Mike Belopuhov
e13307d836
Move icbd_ioerr before the dispatch
2014-03-07 15:16:04 +01:00
Mike Belopuhov
be3ad87cfc
Rewrite logger_dispatch to use bufferevents to simplify error processing
...
This also ensures that we're dealing with partial messages correctly and
don't get out of sync with the main process.
2014-03-07 15:14:54 +01:00
Mike Belopuhov
460786f474
Add command line switch '-n' to disable DNS
2014-03-06 16:30:44 +01:00
Mike Belopuhov
f3c60e6c62
After some deliberation we have decided that if modtab is enabled
...
then it should be possible to steal the moderation.
2014-03-06 16:30:44 +01:00
Florian Obser
3fdebb84a9
log "Today is...", input mikeb
2014-03-06 14:56:10 +01:00
mbelop
709c3bcf05
Merge pull request #1 from bentley/master
...
Use more semantic mdoc macros.
2014-03-06 14:02:42 +01:00
Sebastian Benoit
6e89d69069
accept throttling on EM/ENFILE, add checks for other errnos
2014-03-06 12:34:15 +01:00
Anthony J. Bentley
21477e97bc
Use more semantic mdoc macros.
2014-03-06 00:57:08 -07:00
Mike Belopuhov
9a2a7036c7
Stuff logger_setts into the logger_tick directly
2014-03-06 00:36:39 +01:00
Florian Obser
c1888a5fa8
rotate logs
2014-03-06 00:04:58 +01:00
Florian Obser
23ca6f1881
log group status messages
2014-03-05 23:19:53 +01:00
Mike Belopuhov
87dc6acc86
Remove an strlcpy leftover
2014-03-05 23:02:32 +01:00
Stuart Henderson
e54f151f05
chdir(/) immediately after chroot
2014-03-05 21:48:17 +00:00
Mike Belopuhov
3dba97de1d
Add a logging switch toggle and a prefix for a nicer chroot
2014-03-05 22:41:56 +01:00
Stuart Henderson
b28dd0e9f3
Ignore flags for /w, ircII uses -s by default with "SHOW_CHANNEL_NAMES"
2014-03-05 21:06:17 +00:00
Mike Belopuhov
1dd35547d8
Chroot the logger process into the icbd user home directory
2014-03-05 18:39:17 +01:00
Mike Belopuhov
4e66b3ae9b
Working logging
2014-03-05 18:28:43 +01:00
Florian Obser
a5893e9ac7
time accounting for log lines
2014-03-05 17:56:11 +01:00
Mike Belopuhov
45bd56ab0c
logger will do its own time accounting; from the discussion with florian
2014-03-05 17:02:49 +01:00
Mike Belopuhov
55923b7428
Add some basic logger framework
2014-03-05 16:37:31 +01:00
Mike Belopuhov
fdbbc45de8
Correct strlen argument; from sthen via florian
2014-03-05 11:42:56 +01:00
Mike Belopuhov
c9402c337d
Rework bufferevent read code
2014-03-05 11:42:33 +01:00
Mike Belopuhov
efa8586633
When doing privmsg do username lookups in all groups until the first match
2014-03-05 00:59:20 +01:00
Stuart Henderson
b7bc4329fe
permit whitespace in topic, otherwise sanitize to _
2014-03-04 23:17:15 +00:00
Mike Belopuhov
626f420e1c
Add icb_vis to escape '%' chars and do some other sanitizing
2014-03-04 18:09:42 +01:00
Mike Belopuhov
8ef8c4edc1
Set SO_KEEPALIVE on the client socket, not on the server one
2014-03-04 12:30:49 +01:00
Mike Belopuhov
d488e1b381
Document -M modtab
2014-03-04 12:17:42 +01:00
Stuart Henderson
0c4d8fce53
enable tcp keepalives to help clear out dead connections
2014-03-04 12:17:15 +01:00
Mike Belopuhov
5815eefc6f
Better formatting and additional warnings
2014-03-04 11:36:23 +01:00
Mike Belopuhov
b4049f9ba8
Rewrite DNS resolver to do things truly asynchronously
2014-03-04 11:34:57 +01:00
Mike Belopuhov
fa271b86eb
Introduce session IDs and associated tree linkage
2014-03-04 11:34:15 +01:00