Move unreg, privs, capab and active fields from struct Client to struct Connection.
[ircu2.10.12-pk.git] / ircd / m_server.c
index 934fd3accb643081762d35eaa4cee414a33ff37f..7d57cd57057d6300da523e7535f4ff9c7210d0ba 100644 (file)
@@ -610,6 +610,8 @@ int mr_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   cli_serv(cptr)->timestamp = timestamp;
   cli_serv(cptr)->prot = prot;
   cli_serv(cptr)->ghost = ghost;
+  memset(cli_privs(cptr), 255, sizeof(struct Privs));
+  ClrPriv(cptr, PRIV_SET);
   SetServerYXX(cptr, cptr, parv[6]);
 
   /* Attach any necessary UWorld config items. */