Commit 4c5d462d authored by Romain Bignon's avatar Romain Bignon

comments in config file and dcc sources

parent da4e2f25
# Path settings
path {
# Users directory, where minbif will write
# every settings.
users = /var/lib/minbif/users
}
irc {
# IRC server hostname. If not set, it'll be automatically detected.
#hostname = localhost.localdomain
# Standalone or run by inetd?
# note: currently, only the inetd works.
#
# 0: inetd
# 1: daemon
# 2: daemon fork
# 1: daemon (isn't implemented yet)
# 2: daemon fork (isn't implemented yet)
type = 0
# Ping interval in seconds.
ping = 60
}
# Log function
logging {
# What you want to log
# DEBUG :Debug information (discouraged)
# PARSE :Parse information (discouraged)
......@@ -28,7 +37,6 @@ logging {
# INFO :Information
# ALL :Show all infos
# You can put several logging level on the same line, separated by a space
level = DESYNCH WARNING ERR CONNEC INFO
# Wether to log errors and warning to syslog
......
......@@ -110,6 +110,10 @@ void DCCSend::dcc_read(gpointer data, int source, PurpleInputCondition cond)
if (len < 0 && errno == EAGAIN)
return;
else if (len <= 0) {
/* DCC user has closed connection.
* fd is already closed, do not let deinit()
* reclose it.
*/
dcc->fd = -1;
dcc->deinit();
return;
......@@ -138,6 +142,7 @@ void DCCSend::dcc_read(gpointer data, int source, PurpleInputCondition cond)
}
if (acked >= dcc->total_size) {
/* DCC send terminated \o/ */
dcc->deinit();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment