#include "blacklist.h"
#include "substitution.h"
#include "chmode.h"
+#include "s_assert.h"
static void report_and_set_user_flags(struct Client *, struct ConfItem *);
void user_welcome(struct Client *source_p);
else
encr = source_p->localClient->passwd;
- if(strcmp(encr, aconf->passwd))
+ if(encr == NULL || strcmp(encr, aconf->passwd))
{
ServerStats.is_ref++;
sendto_one(source_p, form_str(ERR_PASSWDMISMATCH), me.name, source_p->name);
target_p->name, target_p->username,
target_p->host, nick);
- sendto_realops_snomask(SNO_NCHANGE, L_ALL,
- "Nick change: From %s to %s [%s@%s]",
- target_p->name, nick,
- target_p->username, target_p->host);
+ if(MyConnect(target_p))
+ sendto_realops_snomask(SNO_NCHANGE, L_ALL,
+ "Nick change: From %s to %s [%s@%s]",
+ target_p->name, nick,
+ target_p->username, target_p->host);
}
rb_strlcpy(target_p->username, user, sizeof target_p->username);