Преглед изворни кода

Give localhubs credit for adding their child bots in 'whois'

Bryan Drewery пре 17 година
родитељ
комит
06ffe1824e
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 2 0
      doc/UPDATES
  2. 1 1
      src/conf.c

+ 2 - 0
doc/UPDATES

@@ -1,3 +1,5 @@
+* Give localhubs credit for adding their child bots in 'whois'
+
 1.2.16 - http://wraith.botpack.net/milestone/1.2.16
 * Add 'set altchars' so that alternative characters used for nicks can be changed. (fixes #418)
 * Fix channels added by cmd_slowjoin not having the user who added them associated with the channel.

+ 1 - 1
src/conf.c

@@ -1179,7 +1179,7 @@ void conf_add_userlist_bots()
         userlist = adduser(userlist, bot->nick, "none", "-", USER_OP, 1);
         u = get_user_by_handle(userlist, bot->nick);
 
-        egg_snprintf(tmp, sizeof(tmp), "%li [internal]", (long)now);
+        egg_snprintf(tmp, sizeof(tmp), "%li %s", (long)now, conf.bot->nick);
         set_user(&USERENTRY_ADDED, u, tmp);
 
         bi = (struct bot_addr *) my_calloc(1, sizeof(struct bot_addr));