|
@@ -473,9 +473,6 @@ free_conf_bots(void)
|
|
|
int
|
|
int
|
|
|
parseconf(bool error)
|
|
parseconf(bool error)
|
|
|
{
|
|
{
|
|
|
- if (error && !conf.bots->nick && !conf.bots->next) /* no bots ! */
|
|
|
|
|
- werr(ERR_NOBOTS);
|
|
|
|
|
-
|
|
|
|
|
if (conf.username) {
|
|
if (conf.username) {
|
|
|
str_redup(&conf.username, my_username());
|
|
str_redup(&conf.username, my_username());
|
|
|
} else {
|
|
} else {
|
|
@@ -789,6 +786,9 @@ fill_conf_bot()
|
|
|
conf_bot *me = NULL;
|
|
conf_bot *me = NULL;
|
|
|
char *mynick = NULL;
|
|
char *mynick = NULL;
|
|
|
|
|
|
|
|
|
|
+ if (!conf.bots || !conf.bots->nick)
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
if (localhub && conf.bots && conf.bots->nick) {
|
|
if (localhub && conf.bots && conf.bots->nick) {
|
|
|
mynick = strdup(conf.bots->nick);
|
|
mynick = strdup(conf.bots->nick);
|
|
|
strlcpy(origbotname, conf.bots->nick, NICKLEN + 1);
|
|
strlcpy(origbotname, conf.bots->nick, NICKLEN + 1);
|