فهرست منبع

* Another fix for #92

svn: 2127
Bryan Drewery 21 سال پیش
والد
کامیت
f9d2fc1393
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/conf.c

+ 5 - 1
src/conf.c

@@ -455,7 +455,11 @@ conf_addbot(char *nick, char *ip, char *host, char *ip6)
   if (bot->net.ip6 || bot->net.host6)
     bot->net.v6 = 1;
 
-  bot->u = NULL;
+  if (userlist)
+    bot->u = get_user_by_handle(userlist, nick);
+  else
+    bot->u = NULL;
+
 //  bot->pid = checkpid(nick, bot);
 
   if (settings.hubs) {