#include "sys.h"
#include "uping.h"
#include "userload.h"
+#include "map.h"
#include <assert.h>
#include <fcntl.h>
if (MyConnect(sptr)) {
if (showip)
ircd_snprintf(0, nbuf, sizeof(nbuf), "%s[%s@%s]", cli_name(sptr),
- (IsIdented(sptr)) ? cli_username(sptr) : "", cli_sock_ip(sptr));
+ cli_user(sptr)->username, cli_sock_ip(sptr));
else
return cli_name(sptr);
return nbuf;
* that the client can show the "**signoff" message).
* (Note: The notice is to the local clients *only*)
*/
- sendcmdto_common_channels(bcptr, CMD_QUIT, ":%s", comment);
+ sendcmdto_common_channels_butone(bcptr, CMD_QUIT, NULL, ":%s", comment);
remove_user_from_all_channels(bcptr);
while ((lp = cli_user(bcptr)->silence))
del_silence(bcptr, lp->value.cp);
+ /* Clean up snotice lists */
+ if (MyUser(bcptr))
+ set_snomask(bcptr, ~0, SNO_DEL);
+
if (IsInvisible(bcptr))
--UserStats.inv_clients;
if (IsOper(bcptr))
cli_name(killer), comment);
else
sendrawto_one(victim, MSG_ERROR " :Closing Link: %s by %s (%s)",
- cli_name(victim), cli_name(killer), comment);
+ cli_name(victim), IsServer(killer) ? cli_name(&me) :
+ cli_name(killer), comment);
}
}
if ((IsServer(victim) || IsHandshake(victim) || IsConnecting(victim)) &&
get_client_name(killer, HIDE_IP));
sendto_opmask_butone(0, SNO_NETWORK, "Net break: %C %C (%s)",
cli_serv(victim)->up, victim, comment);
+
+#if defined(HEAD_IN_SAND_MAP) || defined(HEAD_IN_SAND_LINKS)
+ map_update(victim);
+#endif
}
/*