1
0
Эх сурвалжийг харах

* Write userfile when adding/removing users/bots

Bryan Drewery 14 жил өмнө
parent
commit
bfd299016c

+ 2 - 0
src/mod/share.mod/share.c

@@ -533,6 +533,7 @@ share_newuser(int idx, char *par)
       noshare = 0;
       if (conf.bot->hub)
         putlog(LOG_CMDS, "@", "%s: newuser %s %s", dcc[idx].nick, nick, s);
+      write_userfile(-1);
     }
   }
 }
@@ -551,6 +552,7 @@ share_killuser(int idx, char *par)
       shareout_but(idx, "k %s\n", par);
       if (conf.bot->hub)
         putlog(LOG_CMDS, "@", "%s: killuser %s", dcc[idx].nick, par);
+      write_userfile(-1);
     }
     noshare = 0;
   }