Mike Belopuhov
cba908b565
defgrp is const
2015-04-22 19:28:27 +02:00
Mike Belopuhov
f73b386eea
oops, fixup paste errors so that it compiles now
2015-01-18 23:43:41 +01:00
Mike Belopuhov
8d30e02557
icb_vis improvements
...
- don't allow trailing single percentage signs;
- properly handle snprintf return value;
2015-01-18 23:38:34 +01:00
Mike Belopuhov
4c2a775e0d
Do comparison before decrementing one of the operands.
...
Move invariant out of the conditional block.
2015-01-18 21:46:13 +01:00
Mike Belopuhov
cb7c49446c
use ICB_MAXGRPLEN for the lenght of the group name
2015-01-18 21:46:13 +01:00
Mike Belopuhov
0519a8785b
param.h and MAXHOSTNAMELEN cleanup
2015-01-18 21:46:13 +01:00
Mike Belopuhov
8f5ba64c71
fix two off-by-ones in icb_vis
2014-11-11 13:41:17 +01:00
Mike Belopuhov
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).
2014-10-28 02:44:46 +01:00
Mike Belopuhov
d45051e8e7
make sure to abort bufferevent processing after icbd_drop was called
2014-06-17 13:31:02 +02:00
Mike Belopuhov
1bcb666958
Change the "Bummer" message to the more informative one
2014-03-13 12:16:21 +01:00
Mike Belopuhov
7882a6f262
Get rid of the icbd callbacks interface
...
I believe the idea was initially to have both icb and irc in one
daemon but that's not going to happen.
2014-03-10 13:13:22 +01:00
Mike Belopuhov
b6c9dd34d7
Don't cleanup trailing spaces from open and personal messages.
2014-03-10 11:22:15 +01:00
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
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
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
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
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
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
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
a202ff1e88
strip trailing spaces from all fields; based on the idea by sthen
2014-03-03 02:13:50 +01:00
Mike Belopuhov
1d2125a078
Add support for the moderator table that specifies (currently up
...
to 50) users that are allowed to become moderators.
2014-03-02 02:50:57 +01:00
Mike Belopuhov
4284008c22
Revamp "who" command handling; rename "moder" to "mod".
2014-03-02 02:50:39 +01:00
Mike Belopuhov
9195a6aa75
add a simple help command
2013-12-24 19:56:50 +01:00
Mike Belopuhov
bf02a602e1
add 'beep' and 'nobeep' support
2013-12-24 18:52:56 +01:00
Stuart Henderson
1fb1bbe44f
handle pong->ping
2013-12-17 18:08:09 +01:00
Stuart Henderson
1022119787
NULL != 0
2013-12-17 18:07:59 +01:00
Mike Belopuhov
a785c27223
allow specifying a server name; do hostname evaluation only once
2010-01-08 14:16:34 +01:00
Mike Belopuhov
1da9ee51ec
pysch pysch goto
2010-01-08 13:19:18 +01:00
Mike Belopuhov
e3a7f9bdf8
drop rcsids
2010-01-08 12:22:40 +01:00
Mike Belopuhov
cd7b81d00d
move it to the github
2010-01-08 12:20:28 +01:00