summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/blabouncer.c b/blabouncer.c
index 2640753..00d339e 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -1029,7 +1029,7 @@ int main(int argc, char *argv[]) {
// What is the auto replay mode?
if (!getconfstr("replaymode", settings.conffile, settings.replaymode)) {
- printf("main(): error getting 'replaymode' from configuration file.\n");
+ printf("main(): error getting 'replaymode' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
} else {
if (strcmp(settings.replaymode, "none") && strcmp(settings.replaymode, "time") && strcmp(settings.replaymode, "lastspoke") &&
@@ -1043,33 +1043,33 @@ int main(int argc, char *argv[]) {
settings.replayseconds = getconfint("replayseconds", settings.conffile);
// Don't worry if replaymode != "time"
if (errno == ECONFINT && strcmp(settings.replaymode, "time") == 0) {
- printf("main(): error getting 'replayseconds' from configuration file.\n");
+ printf("main(): error getting 'replayseconds' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Should sending replay logs include a datestamp?
settings.replaydates= getconfint("replaydates", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'replaydates' from configuration file.\n");
+ printf("main(): error getting 'replaydates' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// What is the bouncer password?
if (!getconfstr("password", settings.conffile, settings.password)) {
- printf("main(): error getting 'password' from configuration file.\n");
+ printf("main(): error getting 'password' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// What port should the bouncer listen on?
if (!getconfstr("clientport", settings.conffile, settings.clientport)) {
- printf("main(): error getting 'clientport' from configuration file.\n");
+ printf("main(): error getting 'clientport' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// What are the configured nick(s)?
int ret = getconfarr("nicks", settings.conffile, settings.ircnicks);
if (!ret) {
- printf("main(): error getting any 'nicks' from configuration file.\n");
+ printf("main(): error getting any 'nicks' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
} else if (ret == -1) {
// Error reading an array line from the configuration file
@@ -1092,13 +1092,13 @@ int main(int argc, char *argv[]) {
// What is the configured username?
if (!getconfstr("username", settings.conffile, settings.ircusername)) {
- printf("main(): error getting 'username' from configuration file.\n");
+ printf("main(): error getting 'username' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// What is the configured real name?
if (!getconfstr("realname", settings.conffile, settings.ircrealname)) {
- printf("main(): error getting 'realname' from configuration file.\n");
+ printf("main(): error getting 'realname' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
@@ -1130,13 +1130,13 @@ int main(int argc, char *argv[]) {
// What is the real IRC server address?
if (!getconfstr("ircserver", settings.conffile, settings.ircserver)) {
- printf("main(): error getting 'ircserver' from configuration file.\n");
+ printf("main(): error getting 'ircserver' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// What is the real IRC server port?
if (!getconfstr("ircserverport", settings.conffile, settings.ircserverport)) {
- printf("main(): error getting 'ircserverport' from configuration file.\n");
+ printf("main(): error getting 'ircserverport' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
@@ -1170,14 +1170,14 @@ int main(int argc, char *argv[]) {
// Should the bouncer use TLS for the IRC server?
settings.servertls = getconfint("servertls", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'servertls' from configuration file.\n");
+ printf("main(): error getting 'servertls' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Should the bouncer use TLS for clients?
settings.clienttls = getconfint("clienttls", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'clienttls' from configuration file.\n");
+ printf("main(): error getting 'clienttls' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
@@ -1216,63 +1216,63 @@ int main(int argc, char *argv[]) {
// Is logging enabled?
settings.logging = getconfint("logging", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'logging' from configuration file.\n");
+ printf("main(): error getting 'logging' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Is replay logging enabled?
settings.replaylogging = getconfint("replaylogging", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'replaylogging' from configuration file.\n");
+ printf("main(): error getting 'replaylogging' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Is alerting (NOTICE) upon a new connection enabled?
settings.alertconnect = getconfint("alertconnect", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'alertconnect' from configuration file.\n");
+ printf("main(): error getting 'alertconnect' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Is alerting (NOTICE) upon a failed authentication enabled?
settings.alertauthfail = getconfint("alertauthfail", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'alertauthfail' from configuration file.\n");
+ printf("main(): error getting 'alertauthfail' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Is alerting (NOTICE) upon a successful authentication enabled?
settings.alertauthsuccess = getconfint("alertauthsuccess", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'alertauthsuccess' from configuration file.\n");
+ printf("main(): error getting 'alertauthsuccess' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Is alerting (NOTICE) upon unauthenticated client disconnections enabled?
settings.alertunautheddisconnect = getconfint("alertunautheddisconnect", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'alertunautheddisconnect' from configuration file.\n");
+ printf("main(): error getting 'alertunautheddisconnect' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Is alerting (NOTICE) upon authenticated client disconnections enabled?
settings.alertautheddisconnect = getconfint("alertautheddisconnect", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'alertautheddisconnect' from configuration file.\n");
+ printf("main(): error getting 'alertautheddisconnect' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// How many debug logs should we keep?
settings.debugkeep = getconfint("debugkeep", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'debugkeep' from configuration file.\n");
+ printf("main(): error getting 'debugkeep' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
// Is debugging enabled?
debug = getconfint("debug", settings.conffile);
if (errno == ECONFINT) {
- printf("main(): error getting 'debug' from configuration file.\n");
+ printf("main(): error getting 'debug' from configuration file. (Recent upgrade? See blabouncer.conf.example for required settings.)\n");
exit(1);
}
if (!snprintf(debugpath, PATH_MAX, "%s/debug/debug.txt", settings.basedir)) {