aboutsummaryrefslogtreecommitdiffstats
path: root/sircbot.c
Commit message (Collapse)AuthorAgeFilesLines
* dont close unix socket til after message is readNatanael Copa2015-06-191-16/+23
| | | | | we need check POLLIN before POLLHUP so we dont close the connection before we got the message.
* handle irc server disconnects betterNatanael Copa2015-06-191-9/+19
|
* don't join channels til we are authedNatanael Copa2015-06-191-4/+9
|
* irc: pass username optionNatanael Copa2015-06-191-4/+3
|
* fix various compiler warningsNatanael Copa2015-06-191-3/+4
|
* fix compile warning about header include of sys/poll.hNatanael Copa2014-09-081-1/+1
|
* fix -u option to set userNatanael Copa2014-09-081-1/+4
| | | | Make it correspond with the help text
* add support for 'multimode'Natanael Copa2013-03-081-7/+22
| | | | | we append nick to pidfile and connection socket so we can run multiple instances of sircbot on same machine.
* add -N option to disable running hooks and fix help messageNatanael Copa2013-03-081-3/+11
|
* move disconnect to separate funcNatanael Copa2013-03-081-6/+10
| | | | slightly cleaner code
* fix another segfaultNatanael Copa2013-03-081-4/+6
| | | | user or data might be null
* fix segfault when IRC server does disconnectNatanael Copa2013-03-071-17/+28
| | | | and fix lots of whitespace damage
* use unix domain socket instead of fifosNatanael Copa2010-09-101-144/+289
|
* handle POLLHUP from fifosNatanael Copa2010-06-291-3/+14
| | | | | when process that writes to fifo exits, the fifo is closed. We handle this by just re-opening it.
* increase read bufferNatanael Copa2010-06-291-1/+1
| | | | | we dont handle situations where read input is bigger than buffer. for now we just increase the buffer size.
* logfile supportNatanael Copa2010-06-291-5/+9
| | | | Add support for logfile via -l option.
* version 0.1v0.1Natanael Copa2010-04-061-1/+1
| | | | we include version number in binary
* fix fd leakNatanael Copa2010-04-061-1/+2
| | | | we only create the fifos when our own nick is joined
* do not logout on POLLHUP from fifosNatanael Copa2010-03-041-3/+4
|
* avoid send a "join" floodNatanael Copa2010-03-031-3/+10
|
* check POLLHUP/POLLERR separatelyNatanael Copa2010-03-031-1/+9
|
* fix kick handlingNatanael Copa2010-03-031-0/+3
|
* handle to get kicked out from a channelNatanael Copa2010-03-031-8/+28
| | | | wait 5 seconds before joining again
* also listen to POLLHUP and POLLERRNatanael Copa2010-03-031-8/+14
|
* implement -r <flushrate> option to set the rate the data is flushedNatanael Copa2010-01-211-3/+8
| | | | This is to avoid getting kicked out for flooding the channel.
* dont send more than one line per second to any channelNatanael Copa2010-01-091-20/+80
| | | | | | We want avoid getting kicked out for flooding channels, so we read from he FIFO and store data in a queue. We then flush the queue, line by line each second.
* initial commitNatanael Copa2009-12-291-0/+378