Browse Source

Leaf bots should set userentry for groups as well

Bryan Drewery 10 years ago
parent
commit
9b2caa55a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/userent.cc

+ 1 - 1
src/userent.cc

@@ -350,7 +350,7 @@ static bool set_gotshare(struct userrec *u, struct user_entry *e, char *buf, int
     /* This will also call set_user(). */
     var_set_by_name(conf.bot->nick, name, buf[0] ? buf : NULL);
     set_noshare = 0;
-  } else if (conf.bot->hub || conf.bot->localhub) {
+  } else if (conf.bot->hub || conf.bot->localhub || !strcmp(name, "groups")) {
     var_set_userentry(u->handle, name, buf);
   }
   return 1;