hash update oopsie

This commit is contained in:
joonicks 2025-10-24 16:09:54 +02:00
parent a50fce4f7e
commit 08da7174e9

View File

@ -534,27 +534,15 @@ recheck_alias:
if (i == 255) if (i == 255)
goto public_msg; goto public_msg;
/*
* match "command" against internal command list
*/
/* todo: delete - hash
for(i=0;mcmd[i].name;i++)
{
*/
if (!has_cc && mcmd[i].cc && !(has_bang && mcmd[i].cbang)) if (!has_cc && mcmd[i].cc && !(has_bang && mcmd[i].cbang))
return; /* continue; */ goto public_msg;
if (uaccess < acmd[i]) if (uaccess < acmd[i])
return; /* continue; */ goto public_msg;
/* /*
* The string hash matches a command, but is it a false positive? * The string hash matches a command, but is it a false positive?
*/ */
j = stringcasecmp(mcmd[i].name,command); if (stringcasecmp(mcmd[i].name,command) != 0)
/* todo: delete - hash goto public_msg;
if (j < 0)
continue;
if (j > 0)
break;
*/
#if defined(BOTNET) && defined(REDIRECT) #if defined(BOTNET) && defined(REDIRECT)
if (mcmd[i].nocmd && redirect.to) if (mcmd[i].nocmd && redirect.to)