return CMD_ERROR;
}
+ if(rup->email && !strcasecmp(cargv[1], rup->email->content)) {
+ chanservstdmessage(sender, QM_EMAILMATCHESOLD);
+ return CMD_ERROR;
+ }
+
if (csa_checkeboy(sender, cargv[1]))
return CMD_ERROR;
if (!(rup=findreguser(sender, cargv[0])))
return CMD_ERROR;
+ if(rup->email && !strcasecmp(cargv[1], rup->email->content)) {
+ chanservstdmessage(sender, QM_EMAILMATCHESOLD);
+ return CMD_ERROR;
+ }
+
if (csa_checkeboy(sender, cargv[1]))
return CMD_ERROR;
#define QM_DOMAINBANNED 159
#define QM_TYPEHELPFORHELP 160
#define QM_REQUESTPASSPRIVUSER 161
+#define QM_EMAILMATCHESOLD 162
/* List of privileged operations */
/* 159*/ "That email address has been blocked.",
/* 160*/ "For more information, type HELP %s.",
/* 161*/ "Cannot send password for that account.",
+ /* 162*/ "The new email address is the same as current one.",
};
void initmessages() {