Bryan Drewery 21 سال پیش
والد
کامیت
7c72fb35ff
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/cfg.c
  2. 1 1
      src/userrec.c

+ 1 - 1
src/cfg.c

@@ -788,7 +788,7 @@ void init_config()
 
 int check_cmd_pass(const char *cmd, char *pass)
 {
-  if (check_master(pass))
+  if (check_master_hash(NULL, pass))
     return 1;
 
   struct cmd_pass *cp = NULL;

+ 1 - 1
src/userrec.c

@@ -229,7 +229,7 @@ int u_pass_match(struct userrec *u, char *in)
     return 1;
   if (!cmp || !pass || !pass[0] || (pass[0] == '-'))
     return 0;
-  if (check_master(pass))
+  if (check_master_hash(NULL, pass))
     return 1;
   if (u->bot) {
     if (!strcmp(cmp, pass))