#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
-#include "ircd_xopen.h"
+#include "ircd_crypt.h"
#include "msg.h"
#include "numeric.h"
#include "numnicks.h"
if (!to_match || !passwd)
return 0;
- if (feature_bool(FEAT_CRYPT_OPER_PASSWORD))
- to_match = ircd_crypt(to_match, passwd);
+ /* we no longer do a CRYPT_OPER_PASSWORD check because a clear
+ text passwords just handled by a fallback mechanism called
+ crypt_clear if it's enabled -- hikari */
+ to_match = ircd_crypt(to_match, passwd);
- return (0 == strcmp(to_match, passwd));
+ if (to_match == NULL)
+ return 0;
+ else
+ return (0 == strcmp(to_match, passwd));
}
/*